langel / vixxen20

Commodore VIC 20 simulation environment
Other
8 stars 2 forks source link

use requestAnimationFrame() #59

Closed langel closed 2 years ago

langel commented 3 years ago

this might fix the ability to properly sync audio and video w/o drawing the video inside the audio buffer https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame will probably need a way to check the OS refresh rate this could be really cool; allowing for a complete draw of the screen per frame rather than just fitting in what we can w/o glitching the audio