SFML community forums

Help => Graphics => Topic started by: Tresky on April 10, 2013, 08:47:54 pm

Title: View Drawing
Post by: Tresky on April 10, 2013, 08:47:54 pm
Just a quick question. If I use an sf::View to zoom into a large image and pan around on it, will the View take care of only drawing what is visible so as to maximize performance? Or will I need to use some other abstraction to accomplish this?

Thanks,
Tresky
Title: Re: View Drawing
Post by: Laurent on April 10, 2013, 09:08:08 pm
SFML doesn't optimize out what's not visible, you have to do it yourself if needed. But if you draw a single big image, there's not much to optimize.
Title: Re: View Drawing
Post by: Tresky on April 10, 2013, 09:09:45 pm
Okay thank you! :)