[PR #372] Moved main loop into FixedRate scheduler. Added sync lock on runnable. #13007

Open
opened 2026-06-06 12:21:51 +00:00 by Dark98 · 0 comments
Owner

Original Pull Request: https://github.com/2006-Scape/2006Scape/pull/372

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/2006-Scape/2006Scape/pull/372 **State:** closed **Merged:** Yes --- 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.
Dark98 added the pull-request label 2026-06-06 12:21:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#13007