9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-19 15:09:27 +00:00
Commit Graph

419 Commits

Author SHA1 Message Date
MrPowerGamerBR
5d46676859 Skip "distanceToSqr" call in "ServerEntity#sendChanges" if the delta movement hasn't changed
The "distanceToSqr" call is a bit expensive, so avoiding it is pretty nice, around ~15% calls are skipped with this check

We could also check if the x,y,z coordinates are equal, but for now, let's just keep the identity check, which also helps us since Minecraft's code does reuse the original delta movement Vec3 object
2023-11-15 23:59:00 -03:00
MrPowerGamerBR
483056c151 Add "Optimize entity coordinate key" patch from Pufferfish
"getCoordinateKey"'s "fastFloor" call is using a lot of CPU in "getPlayersInTrackRange", so let's borrow this patch from Pufferfish
2023-11-15 21:59:33 -03:00
Loritta Morenitta
626799a648 Updated Upstream (Paper) 2023-11-14 00:21:23 +00:00
MrPowerGamerBR
30d0833820 Fix world MSPT calculation affecting the server's global MSPT, use a single thread per world
The single thread per world is actually better because now we can profile each world separately. We still mimick the original thread pool by using a semaphore, this way we don't end up saturating all cores
2023-11-12 23:53:55 -03:00
MrPowerGamerBR
7b92cb8f66 Experimental Parallel World Ticking 2023-11-12 20:18:51 -03:00
MrPowerGamerBR
049a8e50ae Track how much MSPT each world used 2023-11-06 22:02:49 -03:00
MrPowerGamerBR
f6c64b641f Update Upstream 2023-11-05 20:57:07 -03:00
Loritta Morenitta
2335c3d73d Updated Upstream (Paper) 2023-11-05 00:23:04 +00:00
MrPowerGamerBR
be4eb65cee Update Upstream 2023-11-03 12:05:45 -03:00
Loritta Morenitta
af230bf6d9 Updated Upstream (Paper) 2023-11-02 00:20:40 +00:00
MrPowerGamerBR
4e105d3f9f Let's start from scratch, shall we? 2023-10-31 00:53:47 -03:00
MrPowerGamerBR
c022a42c8a Update Upstream 2023-10-29 01:46:10 -03:00
MrPowerGamerBR
c5730fafa4 Optimize heavy EntityLookup.ArrayIterable.<init>() calls on tickChunks 2023-10-28 20:18:25 -03:00
MrPowerGamerBR
5663ab9158 Update Upstream and Update Patches 2023-10-27 13:33:43 -03:00
Loritta Morenitta
aa2b448b50 Updated Upstream (Paper) 2023-10-27 00:20:09 +00:00
Loritta Morenitta
cdc3518f44 Updated Upstream (Paper) 2023-10-24 00:20:43 +00:00
MrPowerGamerBR
aa295c78bc Update upstream, add new cherry-picked patches from other forks 2023-10-23 01:40:30 -03:00
MrPowerGamerBR
41a9628f7f More performance optimizations and patches 2023-10-22 15:39:29 -03:00
MrPowerGamerBR
12ada64542 First commit! 🎉 2023-10-22 11:17:21 -03:00