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

Author Topic: What happen when....?  (Read 2859 times)

0 Members and 2 Guests are viewing this topic.

orgos

  • Newbie
  • *
  • Posts: 27
    • View Profile
What happen when....?
« on: October 07, 2009, 05:08:36 am »
Hi people.

I'm working in a game title with SFML, and I want to know some features of SFML.

Fisrt:

What happen when any Drawable object is out of screen or camera view?

Its is rendered and calculated or not?

When is out the SFML version 2?

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What happen when....?
« Reply #1 on: October 07, 2009, 08:31:34 am »
Quote
What happen when any Drawable object is out of screen or camera view?

Its is rendered and calculated or not?

It is calculated, sent to the graphics card, transformed, lit, and then discarded. So it skips rasterization and pixel operations, but it still consumes CPU, bandwidth and a little GPU.

Quote
When is out the SFML version 2?

I don't know :)
Laurent Gomila - SFML developer

orgos

  • Newbie
  • *
  • Posts: 27
    • View Profile
What happen when....?
« Reply #2 on: October 07, 2009, 03:45:49 pm »
This calculation is performed by the Draw method? I mean if i no call the draw method no one calculation is performed for the Drawable object?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What happen when....?
« Reply #3 on: October 07, 2009, 04:06:56 pm »
Quote
This calculation is performed by the Draw method? I mean if i no call the draw method no one calculation is performed for the Drawable object?

Absolutely. Nothing is done if you don't call Draw ;)
Laurent Gomila - SFML developer

orgos

  • Newbie
  • *
  • Posts: 27
    • View Profile
What happen when....?
« Reply #4 on: October 07, 2009, 07:59:02 pm »
Thanks Laurent.

So I go to implement a render region of my entities, to check if I draw it or not for a better performance.