Blu3wolf / Treefarm-Lite

This mod enables you to cultivate trees or other plants
GNU General Public License v3.0
11 stars 9 forks source link

Add performance testing functions for mk1 farms #38

Closed StephenWard closed 8 years ago

StephenWard commented 8 years ago

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.

StephenWard commented 8 years ago

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.

StephenWard commented 8 years ago

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

StephenWard commented 8 years ago

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

StephenWard commented 8 years ago

Finished with pull request #42