Skip to content

Moved main loop into FixedRate scheduler. Added sync lock on runnable.

Dark98 requested to merge github/fork/dbrownidau/fixedratetickloop into master

Created by: dbrownidau

Previous the main while{} loop featured a Thread.Sleep(600). This results in 600ms of unusable CPU time, or a maximum efficiency rate of 30%.

As each invocation is within a Runnable(), a synchronization lock is required to prevent concurrency.

Merge request reports

Loading