jtothebell / fake-08

A Pico-8 player/emulator for console homebrew
Other
563 stars 49 forks source link

Tearing on Miyoo Mini #153

Closed schmurtzm closed 1 year ago

schmurtzm commented 2 years ago

Hi, On Miyoo Mini there's a lot of tearing during fast traveling in Shelled Shinobi . On a PC we don't see the same problem. Is there a way to optimize the FPS or to activate a kind of V-Sync ?

Thanks for this awesome emulator :)

nckstwrt commented 2 years ago

Adding the flag SDL_DOUBLEBUF does seem to fix this for me. So in Host::oneTimeSetup in MiyooMiniHost.cpp

int flags = SDL_SWSURFACE | SDL_DOUBLEBUF;
schmurtzm commented 1 year ago

Just tested, seems to work very well, no more tearing on shelled shinobi 🤩 Thank you !

schmurtzm commented 1 year ago

Adding the flag SDL_DOUBLEBUF does seem to fix this for me. So in Host::oneTimeSetup in MiyooMiniHost.cpp

int flags = SDL_SWSURFACE | SDL_DOUBLEBUF;

@jtothebell @nckstwrt it seems that there is a side effect : there are flickering glitches on the black borders of the screen as in this video : https://youtu.be/l9j1t2ZZMm4

To reproduce : build last dev build from main branch then press "select" to change display stretch mode when something is moving in the game.

Probably something like the requirement of a blit when a change of display stretch mode has been done.