Makes TechGenerator tick async. I cannot see any non-thread safe actions while ticking so should be ok. Testing didn't cause any noticeable issues.
Also tweaked some small things to generate variables only when they are sure to be needed. Ran 5 machines with max zombies for 5 mins.
Before: 16ms on main thread
After: 12ms on Scheduler thread
I have not had the pleasure to be able to play with Supreme, so it would be wise for someone who knows it better than I do to test this build in case I have missed anything.
Note: This class clearly needs a lot of work, this will not really fix the performance issues, only stop them effecting TPS. So I think a fuller review should be undertaken.
Makes TechGenerator tick async. I cannot see any non-thread safe actions while ticking so should be ok. Testing didn't cause any noticeable issues.
Also tweaked some small things to generate variables only when they are sure to be needed. Ran 5 machines with max zombies for 5 mins.
Before: 16ms on main thread
After: 12ms on Scheduler thread
I have not had the pleasure to be able to play with Supreme, so it would be wise for someone who knows it better than I do to test this build in case I have missed anything.
Note: This class clearly needs a lot of work, this will not really fix the performance issues, only stop them effecting TPS. So I think a fuller review should be undertaken.
Sefi