Sign in to follow this  

[SDL] Strange sprite behavior in fullscreen hardware mode

This topic is 4337 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have this sprite class, based on the Cone3D tutorials (http://cone3d.gamedev.net/), that isn't working right in fullscreen with hardware surfaces. With double buffering, I get sprite trails, but they don't look like the "Oops forgot to redraw the background" kind. They sort of shimmer, like the old garbage sprites are alternating between visibility and invisibility. Without double buffering, I get this horrible flickering like my monitor is refreshing at 30Hz or so. I have tried calling SDL_DisplayFormat and SDL_DisplayFormatAlpha on the sprite's surface at various points, all of which resulted in the sprite not being drawn at all. None of this applies to windowed or software modes.

Share this post


Link to post
Share on other sites

This topic is 4337 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this