Sign in to follow this  

SDL surface 'culling'

This topic is 4733 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

From what I remember, it does do the culling/clipping for you. Obviously if you can easily reject a group of blit operations beforehand, then do it. I don't think it's worth checking on a per-blit level however since SDL presumably has reasonably optimised methods for doing just that (or even ignoring it on hardware where it doesn't matter... should such a beast exist).

(Aside: if you want to bypass that, I believe you can call SDL_LowerBlit directly. That might give you a 1% performance increase if you're lucky, and only if you can be confident that everything is definitely within screen boundaries.)

Share this post


Link to post
Share on other sites

This topic is 4733 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