kieranhj / pop-beeb

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

Double-buffering not quite working correctly #44

Closed kieranhj closed 6 years ago

kieranhj commented 6 years ago

The double-buffer implementation isn't quite right. Can observe tearing in the lower half of the screen when stepping frames occasionally. Also when switching screens end up with the second to last frame being held during transition (lose last frame.)

kieranhj commented 6 years ago

Fixed up screen change buffer handling but seems to hold for a long time between screens? Seem to recall that vblank wait isn't in the place you would expect so might be causing the tearing

kieranhj commented 6 years ago

Moved vblank to correct place. Also noticed a bug (missing RTS!) which meant the background was being redrawn an extra time between screen changes. I think this is fixed now.