9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-21 16:09:30 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
MrPowerGamerBR
eed11e38b2 Skip "MapItem#update()" if the map does not have the CraftMapRenderer present
Optimizes "image in map" maps, without requiring the map to be locked, which some old map plugins may not do

This has the disadvantage that the vanilla map data will never be updated while the CraftMapRenderer is not present, but that's not a huuuge problem for us
2023-11-17 15:02:07 -03:00
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
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
4e105d3f9f Let's start from scratch, shall we? 2023-10-31 00:53:47 -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
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