Improve readability of vsync and settings update code

This commit is contained in:
Kung-vr
2019-01-28 23:11:20 +09:00
parent d529b21f3e
commit a39196af01
10 changed files with 324 additions and 215 deletions
@@ -309,6 +309,18 @@ void ReviveTabController::eventLoopTick()
if ( m_isOverlayInstalled
|| parent->m_settingsTabController.forceRevivePage() )
{
// 139 was chosen because it's a prime number (to reduce overlap of
// simultaneous settings updates).
// Actual rate of updates is 139 * vsync (~11ms)
// Values chosen based on update speed priority
// Values in other tabs are as follows (avoid using same values):
// AccessibiltyTabController: 151
// AudioTabController: 89
// ChaperoneTabController: 101
// MoveCenterTabController: 149
// SettingsTabController: 157
// SteamVRTabController: 97
// UtilitiesTabController: 19
if ( settingsUpdateCounter >= 139 )
{
if ( parent->isDashboardVisible() )