Hi,
I’m using ALINE 1.6.2, Unity 2021.3.9f1 LTS, and URP.
Drawing in a Entities.ForEach works perfectly fine drawing in Gamemode but in scene view it draws nothing.
Sometimes after compliling it renders in scene view for a bit, but stops after compliling a few times.
Today it was 90% not working.
Any ideas as to what might cause this inconsistent issue?
It looks like ECS system jobs can actually continue to run into the next frame. If you have an uneven framerate this can lead to flickering since during some frames 2 jobs complete, and during some frames 0 jobs complete. I have fixed this by making DisposeAfter wait for the dependency at the end of the frame before rendering by default (it can be turned off too, which is useful for long-running jobs).
This fix will be included in the next update.
I’m not sure what could cause it to render absolutely nothing, though. I cannot replicate that.
As a workaround, you can make sure to call Complete on the job before the end of the frame (well, before rendering happens).