Remember me

Lost Password?

Register now!
Who's Online
67 user(s) are online (30 user(s) are browsing Forums)

Members: 1
Guests: 66

kas1e, more...
Support us!
Recent OS4 Files
Report message:*

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by Capehill on 2018/3/25 12:58:37


Spent quite much time to debug Beret issue. After all, the issue was that SDL creates a "shadow surface" (SW) under certain conditions and accelerated blits are canceled. In practise it could happen when asked for SDL_HWSURFACE|SDL_DOUBLEBUF but without SDL_FULLSCREEN.

Whole surface creation is so complicated business due to all combinations. Now, if the backend would use the same flipping code for both window and fullscreen, this problem might be solved but at the moment my advice is to pass SDL_DOUBLEBUF only with FULLSCREEN|HWSURFACE combo.

So, for accelerated blitting, either use:


Or if your application needs to poke surfaces like many emulators do, maybe use just SWSURFACEs.
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project