Game optimisation - rotate static sprites

0 favourites
  • 5 posts
From the Asset Store
Simple resize and rotate events for any sprite, quick and easy event sheet that you can use for your own projects.
  • Hello

    I am not sure, how expensive for fps is placing rotated sprites. Means, not in game animated rotation, but where I am placing some sprite in editor and rotate it 45, 123 etc degrees. In game it not moving/animating.

    I know, I can prepare different sprites (same but rotated) but for my design this is not needed and need much more time of course.

    Another question, just for sure. Do sprites outside view are visible state (for engine) or should I disable any outside layout sprite visibility?

    Thank for your help

  • You are on the right track, You can disable anything not required by using "Is on Screen" and invert it.

    For example you could disable collisions on all objects not required of screen by putting them into families.

    This will increase performance. Depends on your game, but everything helps.

  • Thank you. Here few reasons, why it's not auto disabled I think But for example, state like a "disable/hide all objects not on sceen where distance is > than..." would be handy.

  • Having the rotated images wont make any difference so go ahead and use them.

    As for disabling off screen stuff, that will work for collision checks, movements, line of sight checks, stuff like that, however making the sprites hidden/invisible will have no effect on performance.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Unless you can measure a performance difference, it's irrelevant. See Optimisation: don't waste your time

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)