ClaimExpiration Task will load chunks
IAISI opened this issue ยท 4 comments
Observed Behavior
getPlayerInvestmentScore() will load chunks and potentially cause lag
Expected Behavior
Not sure, maybe we could consider removing this or move to Paper's async chunk loading system, both solutions will have downsides tho.
Reproduction steps
N/A
Stack trace or error log
No response
Server version
Paper 1.20.4
GriefPrevention version
Latest
Configuration
Claim expiration enabled, I think that's the only setting that is related to this report.
Plugin list
No response
Running without GriefPrevention
- I attempted running the server without GriefPrevention installed.
- The problem does not occur when GriefPrevention is removed from the server.
Running with only GriefPrevention
- I attempted running only GriefPrevention on the server.
- The issue still occurs when GriefPrevention is the only plugin running.
Running on a fresh, clean server installation
- I attempted testing for the issue on a new server.
- The issue still occurs on a new server.
Using unmodified client
- I attempted testing for the issue with the vanilla client.
- The issue still occurs when using the vanilla client.
We appreciate you taking the time to fill out a bug report!
- I searched for similar issues before submitting this bug report.
I guess the alternative solution would be to disable deleting unused claims which can be done via config.
We could also delete claim expiration from v17 and leave it to an addon since we're stripping out features. https://github.com/GPAddons/GPClaimExpiration mostly fills the void already, though it doesn't do nature restoration.
It's only loading the chunk to check the restore nature conditions right?
If we strip that out and leave it to addons, we can still keep claims expiring and just have it strictly unclaimed. Not change anything in the world
That particular one also checks "investment score" which is supposed to check if the player has put down sufficient blocks. This was set to only happen in creative worlds for performance reasons, apparently: ce6bddc
It loads every chunk in the claim once for the score, then a second time to do nature restoration if the claim is deleted.