Skip to content

Better Thread Structure, Better Idle Performance!!

Compare
Choose a tag to compare
@tgmeow tgmeow released this 02 Dec 09:01
· 3 commits to master since this release

A small but significant update from v1.0.0.

Better idle performance is achieved by:

  • Only calling the draw method when there is something that needs updating
  • Simplifying the draw of an "inactive" string to a single line(hasn't been plucked within 12 seconds or never plucked)
  • Simplified the tic and sample of an inactive string to a no op and return zero
  • Transferred the TicThread to the EventQueue and added another thread that monitors/updates the activity of the strings. When all of the strings are inactive, the Tic thread expires. Triggering a tic through the String monitor launches the thread(s) and triggers draws.