bbbradsmith / hatariB

Libretro core for Hatari emulation of Atari ST STE TT Falcon
GNU General Public License v2.0
20 stars 3 forks source link

Runahead with one-shot on-screen keyboard shows very outdated background screen #24

Closed bbbradsmith closed 8 months ago

bbbradsmith commented 1 year ago

I think when a savestate is loaded, the contents of the saved screen buffer might be very out of date.

I could probably do something to clear the buffer when a savestate is loaded instead of keeping whatever happened to be there. Is clearing to color 0 possible? I know I created a mechanism for that for the non-savestate case where the buffer is just created.

bbbradsmith commented 11 months ago

Take a look at VIDEL_renderScreen and where it is called, and look for a corresponding ST render screen. Can these re-render the whole screen at once? Would it work, or is this 1 frame old? (Maybe 1 frame old is still good, though.)

bbbradsmith commented 8 months ago

Should be fixed: https://github.com/bbbradsmith/hatariB/commit/c15ab8ce4eeefed9d4ed515c312f6dc61084cea4

Ended up just adding the screenshot to the save file, but only if the savestate was during a pause.