You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code uses very little CPU usage - according to Process Monitor, on my Intel N100 CPU it spends the majority of the time at 0% with brief moments at 0.5% and 1.5%.
It might be possible to reduce it even more by creating an "idle" function that loops and polls for connected controllers every (say) 2 seconds. Once a controller has been connected, the standard loop runs. In the standard loop, every (say) 15 minutes there is a check to see if the controllers are still connected. If they are not then the code returns to the "idle" function.
The idea being that if you have no controllers connected, then we can reduce the polling significantly. However there is a big risk that this doesn't lower the CPU usage very much (or potentially makes it worse) and the effort to implement outweighs the value.
The text was updated successfully, but these errors were encountered:
The current code uses very little CPU usage - according to Process Monitor, on my Intel N100 CPU it spends the majority of the time at 0% with brief moments at 0.5% and 1.5%.
It might be possible to reduce it even more by creating an "idle" function that loops and polls for connected controllers every (say) 2 seconds. Once a controller has been connected, the standard loop runs. In the standard loop, every (say) 15 minutes there is a check to see if the controllers are still connected. If they are not then the code returns to the "idle" function.
The idea being that if you have no controllers connected, then we can reduce the polling significantly. However there is a big risk that this doesn't lower the CPU usage very much (or potentially makes it worse) and the effort to implement outweighs the value.
The text was updated successfully, but these errors were encountered: