Help me understand Spark Profiler, I am slow.

I looked at the documentation and at youtube videos but there is one thing I do not understand How am I supposed to tell what is bad and how to follow that path? Since I am on a world and not a server, the youtube videos examples dont give the best example Im not asking someone to just fix my issue, I want to genuinely understand how to use spark profiler past running the commands and getting reports. How do I read reports accurately.
33 Replies
Lowspot
LowspotOP2mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Lowspot
LowspotOP2mo ago
No description
No description
blobfish
blobfish2mo ago
generally, you want to be looking for paths in the server thread section which have an abnormally high percentage of the tick used
blobfish
blobfish2mo ago
for example this path
No description
blobfish
blobfish2mo ago
the survive mod seems to be using like 37% of each tick on average which is not very good the paths in the graph represent the call stack, so its the higher up functions calling the lower down functions in the code in each path its quite hard to understand what that section is really about without knowing java
blobfish
blobfish2mo ago
the mods tab also makes it quite clear its the survive mod (and the library its using) which is eating up a lot of the tick
No description
blobfish
blobfish2mo ago
the rest of the tick is largely spent just ticking entities as usual . . with that said, i wouldnt be so quick to blame the mod when seeing that because you also seem to have 1.6k entities loaded thats a lot of entities though it could also be the mod causing that idk the spark graph says you have 4k chunks loaded but another section says you have 400 loaded and i dont know which is correct
Lowspot
LowspotOP2mo ago
One I was exploring around and another I was standing still thats prob why I wanted to see if it occured at what time\ I learned it still occured even when still
blobfish
blobfish2mo ago
no I meant in the same spark report
Lowspot
LowspotOP2mo ago
Oh So I should test by removing those 2 mods and see if it still occurs or if it reveals another!
ProGamingDk
ProGamingDk2mo ago
4k includes* lazy loaded number
blobfish
blobfish2mo ago
oh so are they not ticked or something
ProGamingDk
ProGamingDk2mo ago
no
blobfish
blobfish2mo ago
idk what lazy loaded means in this context i don’t use new version servers
ProGamingDk
ProGamingDk2mo ago
i meant youre correct, lazy loaded means they arent ticked
blobfish
blobfish2mo ago
oh
Snow Kit
Snow Kit2mo ago
GitHub
Lag / low TPS · Issue #324 · Stereowalker/Survive
After experiencing lag (low TPS, high MSPT) across different machines, I investigated using Spark. It appears like: Survive/src/main/java/com/stereowalker/survive/events/SurviveEvents.java Line 148...
Snow Kit
Snow Kit2mo ago
If I had to guess, downgrading to 9.0.6 of Survive will probably fix the performance issues, but always make sure to take backups before up/downgrading mods
Lowspot
LowspotOP2mo ago
Yer ima test this I also know the dev so I just sent them a dm on discord if they still planned to fix this (I commision him for stuff and he knows im making a pack)
Snow Kit
Snow Kit2mo ago
:Nod:
Lowspot
LowspotOP2mo ago
Yes it worked As you can see here the lag is basically gone, I only had 1 very short spike https://spark.lucko.me/woGD28Yb5e
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Lowspot
LowspotOP2mo ago
I think its all good now if im reading it right unless im not
Snow Kit
Snow Kit2mo ago
yeah, should be fine
Lowspot
LowspotOP2mo ago
its not closing
Snow Kit
Snow Kit2mo ago
you may also want to consider eventually getting more ram on your desktop though
Lowspot
LowspotOP2mo ago
I can allocate more I have more then 10 I just didnt allocate more then 10 bc I thought it would be too much My pc has 15 ram total Wait wth why does the profile say I only allocated 7 Should be set to 10 on curseforge
Snow Kit
Snow Kit2mo ago
probably because windows/other apps are greedy everything these days is a web browser and I’ve seen discord alone hit 2gb of memory usage
Lowspot
LowspotOP2mo ago
I was testing mods and organizing them by tabs thats prob why
No description
Snow Kit
Snow Kit2mo ago
ram is getting pretty cheap, you can get a 32gb ddr5 kit for 70gbp
Lowspot
LowspotOP2mo ago
btw the bot isnt able to close this post as u can see in image unless im doing the wrong thing to close this xd
Snow Kit
Snow Kit2mo ago
you can just manually give the post the solved flare, it should be fine
Lowspot
LowspotOP2mo ago
"You cannot mark the question message as the solution, please select the message that best matches the solution. If the solution is in the question message, please copy and paste it into a new message and mark that as the solution. Only you can see this • Dismiss message" skill issue ig thanks snow kit

Did you find this page helpful?