Jump to content
  • Advertisement
Sign in to follow this  
golgoth13

glScissor Optimization?

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

Hi everyone,

I’m digging old concepts I have in mind for awhile. If my understanding is correct, every draw call we send via glDraw* does draw the entire viewport at once, even for the tiniest object using a small fraction of the screen. Basically, I’m looking for an example using glScissor that resize the draw region depending on the space taken on screen by the 3d object(s) being drawn.

Hope I’m clear enough!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by golgoth13
If my understanding is correct, every draw call we send via glDraw* does draw the entire viewport at once, even for the tiniest object using a small fraction of the screen.


Not sure what you mean by this, but it is not so. If you draw a triangle covering 100 pixels, then only 100 pixels (or at least close to it) will be drawn.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!