Jump to content
  • Advertisement
Sign in to follow this  
Genjix

SDL surface 'culling'

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

Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!