Hi
I wanted to know in what circumstances does Draw() actualy draws something on screen.
For example, i made a test with 600 sprites (all with the same image) and when i drawned them all in one location:
for (unsigned int i = 0; i < 600; ++i) ship[i].SetPosition(100, 100);
I had better framerate (arround 700 fps) than when i tried to draw them in diferent locations:
for (unsigned int i = 0; i < 600; ++i) ship[i].SetPosition(i, 100);
Does that mean that Draw() skips some sprites when they are in the same positions?
And also, if i have a sprite that is offscreen and i call Draw() on it will the Draw() try to draw the sprite or will it recognize that the sprite is not inside the window and skip the drawing process??
Should i then use x and y checks before i try to draw something to see if it actualy is on screen to avoid any unnecessary processing?
thanks for the attention[/quote]