You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was planning on commenting on your blog...but since there is no way to do that...and you linked to your github account, I figured I'd put this here.
The sleeps you're doing in run-cpu, emulate-cycle, run-sound, and run-timers all will result in skew that varies from cycle to cycle. It'd be better to use a constant frequency tick for those things. I actually have a library that could be used (though it's probably more complicated than what this needs).
Hey Steve,
I was planning on commenting on your blog...but since there is no way to do that...and you linked to your github account, I figured I'd put this here.
The sleeps you're doing in run-cpu, emulate-cycle, run-sound, and run-timers all will result in skew that varies from cycle to cycle. It'd be better to use a constant frequency tick for those things. I actually have a library that could be used (though it's probably more complicated than what this needs).
Using https://github.com/npatrick04/timer-wheel,
The text was updated successfully, but these errors were encountered: