Project-Muteki / Peanut-GB

Peanut-GB port for Besta RTOS
MIT License
0 stars 0 forks source link

Imprecise framerate control #2

Open dogtopus opened 2 months ago

dogtopus commented 2 months ago

RTC isn't available everywhere and scheduler timer can get imprecise sometimes especially on S3C-family boards. Do we have other options?

dogtopus commented 1 month ago

The S3C port of Besta RTOS does in fact have high precision RTC. Due to a bug (?) it's available in half millisecond interval instead of 1, but the millis number still only goes up to 1000.

Winbond port doesn't have this however and millis seems to be a constant 0, so our program still needs to rely on scheduler timer to function properly on these boards.