Makes any difference Movable or Static property for Paper2D sprites?

Since I’m using only Unlit materials and I have not any lighting setup, there is any performance if I set my static sprites to Static? or I can just let them all be Movable?

It would be better for my current game implementation to let them all be movable so i don’t have to differentiate my classes to make animated platforms.

Thanks.

Hey piXelicidio -

For a medium sized Paper2D level you would probably be fine making this adjustment. Movable Meshes (or Sprites) still have an additional performance cost, but on the whole with no light it would be minimal comparatively. If your game started having FPS issues, the first thing I would do is start to add the Static elements back in to free up some computation.

Thank You

Eric Ketchum

With no lighting then what is left for influencing performance? Physics calculations?
Thanks for your answers!

I was using static sprites for my level, and then now with 4.8 my construction scripts didn’t work for static sprites, many levels unusable, the problem is the sprite property doesn’t update to any changes… :frowning:

Hello piXelicidio -

Can you let me know what you are trying to do with your sprites so I can test the behavior internally? Feel free to post a screenshot of your construction script.

Thank You

Eric Ketchum

Hi Eric,

My class define a surface (or block) in my game, with an editable public property to change the sprite component when editing the level.

In this first image it is working fine, because I set the mobility of the PaperSprite component as “Movable”. The default sprite of my blueprint are the gray and yellow that represent the ground. Then the green bars are the same blueprint but with modified properties in-editor.

In the second image all go wrong because I have changed back the mobility to “Static” as it were before with 4.7.* and it worked well. Here the properties are also changed to different sprite but it keep showing the default gray and yellow blocks. Is like the “Set Sprite” node is ignored in the constructor script. It execute the node but the sprite isn’t changed.

And this is my code: Very simple:

Hey-

Thank you for the additional information. I was able to reproduce this issue internally and have entered a bug report as UE-17523, for reference. As we continue to investigate this issue I will keep you informed here.

Thank You Again -

Eric Ketchum

Nice, thanks.