sven-n / MuMain

76 stars 72 forks source link

Implement adaptive VSync #32

Closed sven-n closed 1 month ago

sven-n commented 1 month ago

Currently the target framework is achieved by a combination of thread sleep and spinning a while(true). This is not optimal, since thread sleep times are very very inaccurate and spinning is wasting cpu cycles. This should be changed to use (adaptive) vsync like the most games can.

More info:

sven-n commented 1 month ago

https://github.com/sven-n/MuMain/commit/ae4c6cd74b647749735163740ef3807936803936