Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: View Drawing  (Read 1350 times)

0 Members and 1 Guest are viewing this topic.

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
View Drawing
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: View Drawing
« Reply #1 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.
Laurent Gomila - SFML developer

Tresky

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: View Drawing
« Reply #2 on: April 10, 2013, 09:09:45 pm »
Okay thank you! :)