NoahBres / MeepMeep

Path visualization tool for Road Runner
63 stars 34 forks source link

Improve performance and add performance tip #1

Closed henopied closed 3 years ago

henopied commented 3 years ago

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.