High TPS due to DedicatedServer.updateTimeLightAndEntities()80.54%

Just as the title says. I am not quite sure what is causing the actual problem itself and I will post the spark link along with this post so that the more code savvy members can see a better depth of the problem. Spark Link: https://spark.lucko.me/hafHnvAWOB
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
83 Replies
Admincraft Meta
Admincraft Meta6mo 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 selke#0
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by selke
Selké
SelkéOP6mo ago
im aware i have too many mods . just looking for what exactly to cut peformance wise and im really bad at interpreting the reports
Skullians
Skullians6mo ago
Too many entities, deuf is quite laggy what cpu are you using?
Selké
SelkéOP6mo ago
AMD Ryzen 9 7950X 16 Core CPU server has a total of 40GB of DDR5 RAM available Radeon RX 7900 XT gfx card do I need to remove entity mods or can I limit spawns with another mod (sorry for double ping should've turned it off second time) I'm also probably lacking in performance mods in general . just pulled up a few to eyeball I just get scared because half the performance mods for forge 1.16 just break each other ig I can binary mod search
Skullians
Skullians6mo ago
In your user_jvm_args.txt, add this -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 Also Don’t allocate so much RAM
Selké
SelkéOP6mo ago
o ?
Skullians
Skullians6mo ago
Only allocate maybe 12-14gb max Spark says your server is only using 4 at that point so 12 is usually fine
Selké
SelkéOP6mo ago
where is this
Skullians
Skullians6mo ago
Don’t you have a txt file called user JVM args
Selké
SelkéOP6mo ago
i have 64gb total its not in my server no I locally host this
Skullians
Skullians6mo ago
what do you run to start the server?
Selké
SelkéOP6mo ago
a start.bat file I made
Skullians
Skullians6mo ago
Doesn’t mean you have to use all of it Send the contents
Selké
SelkéOP6mo ago
java -Xmx40960M -Xms8192M -jar forge-1.16.5-36.2.42.jar nogui pause
Skullians
Skullians6mo ago
right
Selké
SelkéOP6mo ago
I've been doin this for a few years but I am . very very bad at it and I have never seeked out help so I do the most monkey brain shit with "ah yes more ram"
Skullians
Skullians6mo ago
java -Xms11264M -Xmx11264M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar forge-1.16.5-36.2.42.jar nogui replace your java line with that ^
Selké
SelkéOP6mo ago
kks can I keep the pause I like when it stops to . read
Skullians
Skullians6mo ago
yeah that’s fine
Selké
SelkéOP6mo ago
No description
Selké
SelkéOP6mo ago
gucci ?
Skullians
Skullians6mo ago
hell yeah Also
Selké
SelkéOP6mo ago
Also
Skullians
Skullians6mo ago
please get Roadrunner or Performant (either)
Selké
SelkéOP6mo ago
can i up the server to 16
Skullians
Skullians6mo ago
go for it
Selké
SelkéOP6mo ago
I truly have. so much ram
Skullians
Skullians6mo ago
do 16000M well
Selké
SelkéOP6mo ago
16 like. 240
Skullians
Skullians6mo ago
have you seen the server use that much?
Selké
SelkéOP6mo ago
lemme do math depends on the server I just run fatass packs all the time and make new ones every 6 months or so and I legitimately will Never approach capping out my ram I typically keep the same start.bat file so I just try to make it good
Skullians
Skullians6mo ago
you typically want to avoid allocating more than 12GB… because you run into perf issues, however if you know it will use more, give more, but don’t give like 64gb if you know it will only use 20
Selké
SelkéOP6mo ago
oh i see okay you set it to 11 right
Skullians
Skullians6mo ago
set the Xms and Xmx to 16384
Selké
SelkéOP6mo ago
thats more than reasonable then
Skullians
Skullians6mo ago
alr this
Selké
SelkéOP6mo ago
doesn't matter which ?
Skullians
Skullians6mo ago
pick one I’d do performant but your choice
Selké
SelkéOP6mo ago
perfor YEAHHH client & server or just server
Skullians
Skullians6mo ago
CurseForge
Performant
Lag begone! Increases Performance, less entity lag less rubberbanding, more players on the server 17.9M Downloads | Mods
Skullians
Skullians6mo ago
both if you want
Selké
SelkéOP6mo ago
alr got kks okok . sick
Skullians
Skullians6mo ago
server definitely, client for singleplayer
Selké
SelkéOP6mo ago
anything else to add & get clowned on
Skullians
Skullians6mo ago
lemme take a look I’m on mobile
Selké
SelkéOP6mo ago
would you like a full mod list
Skullians
Skullians6mo ago
no dw spark tellls me
Selké
SelkéOP6mo ago
o
Skullians
Skullians6mo ago
although I might miss some get: AI Improvements
Selké
SelkéOP6mo ago
FUCK I KNEW IT
Skullians
Skullians6mo ago
Connectivity if not already Clumps
Selké
SelkéOP6mo ago
i always get greedy and skip AI improvements because the head turning is awesome 😔 👊 i got clumps
Skullians
Skullians6mo ago
Fast Async World Save
Selké
SelkéOP6mo ago
alr have :3 uhh krypton. sucks right
Skullians
Skullians6mo ago
In server.properties, what is sync-chunk-writes set to it’s alright…
Selké
SelkéOP6mo ago
true
Skullians
Skullians6mo ago
you on an SSD or a HDD?
Selké
SelkéOP6mo ago
ssd im not a loser
Skullians
Skullians6mo ago
set it to false then
Selké
SelkéOP6mo ago
o i guess i am a loser
Skullians
Skullians6mo ago
Get FastSuite
Selké
SelkéOP6mo ago
alr have and the other fast stuff
Skullians
Skullians6mo ago
LazyDFU if not already
Selké
SelkéOP6mo ago
furnace table etc. yep got
Skullians
Skullians6mo ago
damn it do you have create? create mod*
Selké
SelkéOP6mo ago
yes 😔 👊 and a few compats for it
Skullians
Skullians6mo ago
get starlight x create mod
Skullians
Skullians6mo ago
CurseForge
Starlight x Create
Starlight 1.16.5 Compatible with Create! 2.1M Downloads | Mods
Selké
SelkéOP6mo ago
got it will this uhh break dynamic lighting in any way its a totaldarkness server so dynamic lighting is really important
Skullians
Skullians6mo ago
shouldn’t if it does just yeet it
Selké
SelkéOP6mo ago
kks
Skullians
Skullians6mo ago
but that’s everything I have so far so uh you’re good to try start up
Selké
SelkéOP6mo ago
you are my goat
Skullians
Skullians6mo ago
lol
Selké
SelkéOP6mo ago
i will mess w/ this and potentially hit you up later if you dont mind
Skullians
Skullians6mo ago
sure
Selké
SelkéOP6mo ago
i have. Never had any help on this shit i just eyeball it 💀 tyty
Skullians
Skullians6mo ago
it’s almost midnight but just ping me in here or DMs (don’t care) and I’ll help as soon as I can
Selké
SelkéOP6mo ago
sick as fuck gochu
Skullians
Skullians6mo ago
I hope it boots correctly may have made a typo xd
Selké
SelkéOP6mo ago
it booted wonderfully i actually got so cooked its insane I'll post another profiler later when I have 5+ players online
Skullians
Skullians6mo ago
okay!

Did you find this page helpful?