From 545711405779a0b5ebb54b1cd5c860172500715e Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Wed, 22 Nov 2023 01:56:46 -0300 Subject: [PATCH] [ci skip] README changes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8f1e63..956e4fc 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,8 @@ SparklyPaper's config file is `sparklypaper.yml`, the file is, by default, place * Caches when Bat's spooky season starts and ends, and when Skeleton and Zombies halloween starts and ends. The epoch is updated every 90 days. If your server is running for 90+ days straight without restarts, congratulations! * Avoids unnecessary date checks, even tho that this shouldn't really improve performance that much... unless you have a lot of bats/zombies/skeletons spawning. * Cache tracking range type enum ordinal - * Yes, I was shocked, flabbergasted even, when I found out that "Enum.ordinal()" was lagging here. - * But I guess it makes sense: It is a function that is called every tick for each entity, and it is a bit wasteful converting from enum to ordinal every time. + * Yes, I was shocked, flabbergasted even, when I found out that `Enum.ordinal()` was lagging when calling `Entity.getPlayersInTrackRange()`. + * But I guess it makes sense: It is a function that is called every tick for each entity, and it is a bit wasteful "converting" (in quotes, because it is actually accessing `int ordinal`) from enum to ordinal every time. * Check how much MSPT (milliseconds per tick) each world is using in `/mspt` * Useful to figure out which worlds are lagging your server. ![Per World MSPT](docs/per-world-mspt.png)