gcewing / SGCraft

Stargates mod for Minecraft
http://www.cosc.canterbury.ac.nz/greg.ewing/minecraft/mods/SGCraft/
MIT License
11 stars 50 forks source link

Performance issue with 1.13.1-mc1.10.2 with RF Stargate Power Unit #30

Open billm opened 7 years ago

billm commented 7 years ago

When placed and powered under the stargate, the RF Stargate Power Unit drops my FPS from a rate limited 60fps to under 30. The F3 screen shows upwards of 20 chunk updates a second. As soon as the power unit block is broken, performance comes back. Replication is easy:

SGCraft 1.13.1 Minecraft 1.10.2 Forge 12.18.2.2171

Best guess on the issue is the calls to markDirty()/markBlockForUpdate() in RFPowerTE.addEnergy() - I could see where 20 chunk updates a second are coming from if one of those methods is saving the chunk each tick.