Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Renderer Static entities

Discussion in 'Graphics for ECS' started by shuskry, Aug 14, 2022.

  1. shuskry

    shuskry

    Joined:
    Oct 10, 2015
    Posts:
    462
    Hi everybody ,

    I’m trying to understand how Dots are working , and I have a misunderstood about rendering static entities.

    I have a scene with a lot of 3D object for the environment , and I’m using the “convert to entity” check box to convert them to entities.

    the problem is that I notice that if my Gameobject are set to “static” , entities are not rendering.

    So, is it better to let them like Gameobject with static ? Or It’s better performance to convert them into entities with “static” uncheck?
    Or maybe I’m in the wrong way to do this ?

    Thanks for the help !
    Have a good day :)
     
    charleshendry likes this.
  2. JussiKnuuttila

    JussiKnuuttila

    Unity Technologies

    Joined:
    Jun 7, 2019
    Posts:
    350
    Does your project have static batching enabled? Entity rendering does not support static batching.

    In DOTS 0.5 and newer, rendering performance should be roughly the same for static and non-static entities. However, static entities might have performance advantages with CPU simulation code (e.g. transform updating).
     
  3. shuskry

    shuskry

    Joined:
    Oct 10, 2015
    Posts:
    462
    @JussiKnuuttila Hello !

    Is I have static batching enabled.

    You are talking about between Static "gameobject"? and non Static entities? if yes, thanks for the awnser :) !

    I'm already using entities if I have a lot of moving object. But I have also a lot of unique mesh, that share the same material (atlas) and there are Static gameobject. So I don't know if it's better to let them as Gameobject with static enabled, or I switch them into entities , incrasing batching ( for mobile).

    Thanks for helping me :D!