Unity ECS - "Weird" data first couple frames / first time it runs

When code is run for the first time / first couple seconds can there be discrepancies? Meaning not every line gets properly executed, even though it’s being read.

The code in question is reliant on baked information from an Authoring script. Most of the code I’m trying to run uses static functions aswell.

If you know of anything I could take a deeper look at or any suggestions, they’d be surely appreciated.

Subscenes are assets and take multiple to frames to load, they won’t exist on frame 1.

2 Likes