sekaiproject / ponscripter-fork

Fork of the Ponscripter visual novel engine to take advantage of SDL2 and improve Steam integration
GNU General Public License v2.0
74 stars 28 forks source link

Fix framerate issues by reworking rerender event #55

Closed euank closed 10 years ago

euank commented 10 years ago

Before the rerender was triggered via a timer. The timer has enough overhead that the framerate rarely reached 60.

This commit switches to using the naive solution of delaying in the event loop (what the timer tried to avoid), but first ensures that there are no events immediately available for processing.