mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:58:28 +02: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();
|
return qApp->getOtherAvatarsReplicaCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TestScriptingInterface::setMinimumGPUTextureMemStabilityCount(int count) {
|
||||||
|
qApp->setMinimumGPUTextureMemStabilityCount(count);
|
||||||
|
}
|
||||||
|
|
||||||
bool TestScriptingInterface::isTextureLoadingComplete() {
|
bool TestScriptingInterface::isTextureLoadingComplete() {
|
||||||
bool result;
|
bool result;
|
||||||
qApp->setMinimumGPUTextureMemStabilityCount(2);
|
|
||||||
QMetaObject::invokeMethod(qApp, "gpuTextureMemSizeStable", Qt::DirectConnection, Q_RETURN_ARG(bool, result));
|
QMetaObject::invokeMethod(qApp, "gpuTextureMemSizeStable", Qt::DirectConnection, Q_RETURN_ARG(bool, result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,6 +163,13 @@ public slots:
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE int getOtherAvatarsReplicaCount();
|
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
|
/**jsdoc
|
||||||
* Check whether all textures have been loaded.
|
* Check whether all textures have been loaded.
|
||||||
* @function Entities.isTextureLoadingComplete
|
* @function Entities.isTextureLoadingComplete
|
||||||
|
|
Loading…
Reference in a new issue