TPS loss but what is the exact cause?

So usually my server (Fabric 1.21) really only drops to 17 when loading a lot of chunks or entities, but is otherwise fine. Now, my question isn't "what is causing my server to lag" but "why" is this causing my server to lag? The culprit of the TPS drop is https://modrinth.com/datapack/witherswrath Wither's Wrath. Here's the Spark report: https://spark.lucko.me/OlPuMFCxbq I'm only asking because the most I can figure out is it's to do with command execution... maybe?
Modrinth
Wither's Wrath - Minecraft Data Pack
A revamped fight for the Wither! with parity features from bedrock to original ideas to make the wither fight more challenging.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
6 Replies
Admincraft Meta
Admincraft Meta7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by elitesdead#0
Admincraft Meta
Admincraft Meta7mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Fabric
Requested by elitesdead#0
Skullians
Skullians7mo ago
It is functions, which is what is used in datapacks. (Which usually run commands) /perf command may help
elite
eliteOP7mo ago
how should i read what /perf gives me? and would it only be useful during the TPS drop?
Skullians
Skullians7mo ago
you can drop it into https://misode.github.io/report and look at the profiling section It would be beneficial but if you want to fix the lag remove the datapack
elite
eliteOP7mo ago
after a little investigating, i've found it really (technically) isn't the datapack rather, after some selective testing the exact same setup will be met with 20 TPS if there is a normal amount of mobs in the world (i.e. no one is near a mob farm) but uh, i can't figure out a way to combat that

Did you find this page helpful?