This uses Executors.newSingleThreadScheduledExecutor to schedule the drawing loop (which is more accurate than the previous method) and changes deltaTime to be in nanoseconds for a smoother experience. Additionally, hardware acceleration wasn't enabled by default on my system, so I added documentation about a flag to enable it.
This uses
Executors.newSingleThreadScheduledExecutor
to schedule the drawing loop (which is more accurate than the previous method) and changesdeltaTime
to be in nanoseconds for a smoother experience. Additionally, hardware acceleration wasn't enabled by default on my system, so I added documentation about a flag to enable it.