Jump to content
  • Advertisement
Sign in to follow this  
Funkymunky

render only when necessary

This topic is 3612 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'm developing an editor programming. it uses opengl for the rendering, with multiple contexts for multiple windows. i don't need to render at 60fps, in fact i really only want to render when necessary. right now i just render on mouse movement, so i can easily run my mouse over it and see what it is, but what would be the best way to render only when the display needs updating?

Share this post


Link to post
Share on other sites
Advertisement
you could render to a texture and, until the view needs to change, just rerender the image each frame instead.

This is about the lowest overhead you'll get I guess.

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!