File Details
myloot-3.0-1.19
- R
- Jun 27, 2022
- 225.70 KB
- 7.3K
- 1.19+1
- Fabric
File Name
myloot-3.0-1.19.jar
Supported Versions
- 1.19-Snapshot
- 1.19
Curse Maven Snippet
Greatly improved performance of myLoot. server TPS should be higher now. See below for technical details:
Figured out the performance issue from
https://github.com/spoorn/myLoot/issues/17.
The performance hit came from during loot container replacement when we
try to set the new block state via serverWorld.setBlockState(). It
would trigger updates to neighbors which may not yet be chunk loaded.
To fix:
1. We cache chunks loaded, rather than use vanilla's deprecated
isChunkLoaded()
2. We check whether the neighboring chunks have been loaded before
trying the replacement, deferring to subsequent ticks if they haven't
yet been loaded
This will help improve the server TPS as the server thread should now be
more free, rather than force loading neighboring chunks due to myLoot
replacement. This does not fix other mods causing chunk loading to chug
however, but increased TPS is great