mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Raised min fps of tablet overlay for smoother scrolling
This commit is contained in:
parent
fc5c2c8def
commit
bcd94203e6
1 changed files with 3 additions and 0 deletions
|
@ -154,6 +154,9 @@ void Web3DOverlay::loadSourceURL() {
|
||||||
auto flags = tabletScriptingInterface->getFlags();
|
auto flags = tabletScriptingInterface->getFlags();
|
||||||
_webSurface->getRootContext()->setContextProperty("offscreenFlags", flags);
|
_webSurface->getRootContext()->setContextProperty("offscreenFlags", flags);
|
||||||
tabletScriptingInterface->setQmlTabletRoot("com.highfidelity.interface.tablet.system", _webSurface->getRootItem(), _webSurface.data());
|
tabletScriptingInterface->setQmlTabletRoot("com.highfidelity.interface.tablet.system", _webSurface->getRootItem(), _webSurface.data());
|
||||||
|
|
||||||
|
// Override min fps for tablet UI, for silky smooth scrolling
|
||||||
|
_webSurface->setMaxFps(90);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_webSurface->getRootContext()->setContextProperty("globalPosition", vec3toVariant(getPosition()));
|
_webSurface->getRootContext()->setContextProperty("globalPosition", vec3toVariant(getPosition()));
|
||||||
|
|
Loading…
Reference in a new issue