Blu3wolf/Treefarm-Lite

Add performance testing functions for mk1 farms

StephenWard opened this issue · 4 comments

Already have perf test functions for mk2 farms - do something similar for mk1 farms.

Also add a documentation file describing how to use the functions and conduct a performance test.

there's also this from the forums
Original: https://forums.factorio.com/viewtopic.php?f=44&t=2813&start=180#p160452

Sadly, my ability to stumble into mod bugs continues. I updated from 0.3.7 to 0.4.0 and my average fps/ups dropped from 37 to 8. The game is a slideshow now. When I hit the F5 button, it seems the tree farm lite script is taking between 80 to 110 ms per frame...? Oddly, lua garbage collection repeatedly fluctuates from 2.9 ms to 4.2 ms. It's as if the tree farm script is stuck repeatedly doing some expensive operations, like allocating and deallocating game objects and/or containers.

The curious thing is that the original Treefarm was running at 37, so it handled Mk1 farms more efficiently. Should look into that to see why.

w/o the fix from #32, 1000 mk1 farms slows to 6.6 FPS/UPS once output backs up

w/ the fix from #32 1000 mk1 farms runs 52-57 FPS/UPS once output backs up

Finished with pull request #42