chromealex/ecs

Assembly Reload Time

echeg opened this issue · 4 comments

echeg commented

The latest version of the framework has a huge Assembly Reload Time

Test on Unity 2019.4.26f1 2020.2.xx 2020.1.xx
Use https://github.com/chromealex/ecs.example

Profiling tool https://github.com/Unity-Technologies/com.unity.editoriterationprofiler

By default Reload time (fast)
image

After update to last version (slow)
image

In a real case, without debugging. Changing 1 line of code in one case takes 4s, in another 12s.
If you remove Burst and Collections, the time drops from 12s to 8s

Is there anything you can do about this? For fast iteration, an initial compilation time of 12s is very annoying...
And one more question. Is it possible to develop without a Unity? Is it possible to build game logic and framework code (without unity) to DLL?

echeg commented

Turn off auto generate by selecting ME.ECS/Generator/struct components/auto generate

Yes thanks it helps.
"Struct Components
To be able to use struct components in jobs, you need some sort of magic to register all your struct components while project initialization."
those. if i don't use Jobs will everything be ok? )

Hope all is ok