mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Added set minimum GPU texture memory cycles to API.
This commit is contained in:
parent
f786f5a4a6
commit
ec69fd38eb
2 changed files with 11 additions and 1 deletions
|
@ -200,9 +200,12 @@ int TestScriptingInterface::getOtherAvatarsReplicaCount() {
|
|||
return qApp->getOtherAvatarsReplicaCount();
|
||||
}
|
||||
|
||||
void TestScriptingInterface::setMinimumGPUTextureMemStabilityCount(int count) {
|
||||
qApp->setMinimumGPUTextureMemStabilityCount(count);
|
||||
}
|
||||
|
||||
bool TestScriptingInterface::isTextureLoadingComplete() {
|
||||
bool result;
|
||||
qApp->setMinimumGPUTextureMemStabilityCount(2);
|
||||
QMetaObject::invokeMethod(qApp, "gpuTextureMemSizeStable", Qt::DirectConnection, Q_RETURN_ARG(bool, result));
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -163,6 +163,13 @@ public slots:
|
|||
*/
|
||||
Q_INVOKABLE int getOtherAvatarsReplicaCount();
|
||||
|
||||
/**jsdoc
|
||||
* Set number of cycles texture size is required to be stable
|
||||
* @function Entities.setMinimumGPUTextureMemStabilityCount
|
||||
* @param {number} count - Number of cycles to wait
|
||||
*/
|
||||
Q_INVOKABLE void setMinimumGPUTextureMemStabilityCount(int count);
|
||||
|
||||
/**jsdoc
|
||||
* Check whether all textures have been loaded.
|
||||
* @function Entities.isTextureLoadingComplete
|
||||
|
|
Loading…
Reference in a new issue