Update for version 0.0.16.
There are few things I still need to reimplement in respect to hex planet. But so far so good.
Life forms now spawn according to height of the planet tiles.
But what more important with this update is, is incorporation of Enter Play Mode Settings.
So I spent some time, to figure out, how to best deal with a problem. Eventually removing almost all static variables, across dozens of systems.
Literally just I left hand full of static variables, which are outside DOTS systems. With some fixes and adjustments, which includes correct initialization, they seem to work now.
So what are the result of the implementation?
- Whether Play Mode is enabled or not, current script changes and compilation, takes about 7 sec.
While using Assembly Definitions, may potentially help, I am not sure, if I want to go that route, based on my past experience with it. There was also large topic in past, discussing various results of using assembly definitions, concluding, that for many of them, resulted in actually slowdown rather speed up.
That was my also experience back then. If anything changed for better, will see, if I give it try again at some point.
- First enter into editor play mode after script compilation, takes approx 11-13 sec.
- Every next enter of editor play mode without Experimental mode enabled, takes approx 11 sec.
- Every next enter of editor play mode with Experimental mode enabled, takes approx 2 sec.
Hence there is massive difference of 8 seconds in my case, between experimental mode enabled, or not.
It is important to notice, that I also run some methods after startup, which takes close to 1 sec.
Here is some reference, to related discussions