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:
@@ -39,8 +39,6 @@ namespace advsettings
|
||||
void MoveCenterTabController::initStage1()
|
||||
{
|
||||
reloadOffsetProfiles();
|
||||
m_moveCenterSettingsUpdateCounter
|
||||
= utils::adjustUpdateRate( k_moveCenterSettingsUpdateCounter );
|
||||
m_lastDragUpdateTimePoint = std::chrono::steady_clock::now();
|
||||
m_lastGravityUpdateTimePoint = std::chrono::steady_clock::now();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user