This pull request reduces the high idle CPU utilization (at least on Linux) discussed in #73. I have not tested this on windows. SDL_WaitEvent uses more CPU than simply polling events on each frame tick. With 60fps the CPU utilization is now 0.7 - 1%. Before it was 4%.
This pull request reduces the high idle CPU utilization (at least on Linux) discussed in #73. I have not tested this on windows. SDL_WaitEvent uses more CPU than simply polling events on each frame tick. With 60fps the CPU utilization is now 0.7 - 1%. Before it was 4%.