kieranhj / pop-beeb

Prince of Persia port to BBC Master
46 stars 3 forks source link

New approach to swapping frame buffers #74

Closed kieranhj closed 6 years ago

kieranhj commented 6 years ago

Propose to swap actual frame buffers during vsync handler to allow the game to continue onto next tick portion. Need to block if reach next rendering portion before frame swap has occured. Also note that font rendering is immediate.

kieranhj commented 6 years ago

Have this in a branch along with a frame rate counter

kieranhj commented 6 years ago

Done, keep an eye out for any side effects (but should be no different to previous approach to just swap buffers immediately mid-frame - just no tearing now!)