promotional bannermobile promotional banner

myLoot

Instanced loot per player for a better looting experience. Loot for all
Back to Files

myloot-3.0-1.19

File namemyloot-3.0-1.19.jar
Uploader
spoornspoorn
Uploaded
Jun 27, 2022
Downloads
7.4K
Size
225.7 KB
Mod Loaders
Fabric
File ID
3850787
Type
R
Release
Supported game versions
  • 1.19-Snapshot
  • 1.19

Curse Maven Snippet

Fabric

modImplementation "curse.maven:myloot-582459:3850787"

Learn more about Curse Maven

What's new

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

 

This mod has no additional files