List Size of Whitelist Dimensions impacts Performance
MojangPlsFix opened this issue ยท 0 comments
What's the issue you encountered?
The more dimensions you add, the more lag is generated.
The main problem is, that the isDimensionWhitelisted() Function is called at every tick.
One solution would be to change the check behaviour and reduce those calls. Another one which would be also ok, is to add a blacklist.
How can the issue be reproduced?
Just add a massive amount of dimensions to the whitelist.
Logs
No response
Mod Version
7.0.0.15
Additional information
https://spark.lucko.me/BGditQ81lo
whitelist had 10k values, but I guess the performance will be reduced with less dimensions.