Refactor update rates of tab controllers

Previous way of controlling when controllers were run was split among
the different controllers, meaning that third parties would require
knowledge of internal state of controllers in order to be on the same
update schedule as them.

This refactor moves the logic into a seperate class.

Additionally, it also stops the use of the `adjustUpdateRate` function
on all tab controllers, since it broke the prime-number-ability of
less collisions.
This commit is contained in:
Vasily
2020-06-06 20:53:34 +02:00
committed by username223
parent 82a0357748
commit 3857c2ac2f
19 changed files with 423 additions and 395 deletions
@@ -49,10 +49,6 @@ private:
bool m_cameraRoom = false;
bool m_cameraDashboard = false;
unsigned settingsUpdateCounter = 0;
unsigned int m_steamVrSettingsUpdateCounter = 97;
public:
void initStage1();
void initStage2( OverlayController* parent );