Scene with thousands of Entities "flickers" when DisableRendering true and false

Scene with thousands of Entities “flickers” when DisableRendering true and false.

I tried using DisableRendering and Disable Components to hide (and show) hundreds to thousands of Entities in one ForEach… loop in DOTS.

But I’m seeing Entities “flicker” from shown to hidden. and Vice versa.

I can just size them down to a NonUniformScale of ‘0,’ but that is not ideal and messes with another SystemBase I have running.

Any suggestions or thoughts on how to get this working? (I think the EntityCommandBuffer version here I have just cannot keep up with the dual-headed range slider I’m using).

Fluent Queries
https://docs.unity3d.com/Packages/com.unity.entities@0.0/manual/entity_iteration_foreach.html

Perhaps I can chain these actions with a Fluent Query and not have the “flickering” effect?

->VERY<- outdated documentation use https://docs.unity3d.com/Packages/com.unity.entities@latest instead.

2 Likes

Thanks, but does this change anything for me on this issue do you see?