for a game I have a huge landscape with many sprites. The player sees only a small part of this world.
My question to the developers is: Have the functions DisplaySprite() and DisplayTransparentSprite() already built-in a test, whether the sprite is visible on screen?
Or do I have to check that (to speed-up the program for example)?
Code: Select all
ForEach allsprites()
...
If x < ScreenWidth() And y < ScreenHeight() And x > -SpriteWidth(sprite) And y > -SpriteHeight(sprite)
DisplaySprite(sprite, x, y)
EndIf
...
Next