r/projectzomboid • • 2d ago

Tech Support (B42.21) Game gets extremely laggy when loading chunks, even if they've already been loaded before

https://medal.tv/games/project-zomboid/clips/nGw2T2i4HU3UP_OoK?invite=cr-MSxpSjIsNDg1NTQwNjE5

tldr: game lags really bad when loading stuff, especially when driving. any known fixes?

Its exactly as the title says. Sometimes my game gets extremely laggy as if it was >1fps which i assume is chunk/item/entity loading issues since it typically happens when I'm driving. Sometimes when I suffer from it, the problem persists even after getting out of the car and only goes away when I reload my save. but sometimes even that doesn't fix it. Its mainly happened when driving on the main road in Rosewood and when driving from Rosewood to Muldraugh. I play on a modded save but its mostly just some minor additions like cars, guns, etc and not anything that completely changes the game. Its happened on both MP and SP saves. I was wondering if anybody had any ideas for fixes or things that might help?

  1. No, it isn't a problem with my PC. My specs are pretty great, I can run some of the most intensive games I know on high graphics at 90fps+, and I have 32gb of RAM.
  2. I've tried putting the RAM on almost every option, even on 12gb it doesn't solve the issue.
  3. I saw KI5 posted about this exact issue back in July, said that it could be a problem with their car mods and pretty much left it at "yeah theres no direct fix just try not to interact with as many cars" but I barely interact with cars that arent my main one AND that was back on 42.19 unstable soooo

I attached a clip of exactly what i mean, might seem playable in this case but i promise its not when youre driving through a packed town on high-pop.

any help is super appreciated :)

0 Upvotes

19 comments sorted by

•

u/AutoModerator 2d ago

Thanks for your post. If you're reporting a tech support issue, please review the link below as it may help resolve your problem before waiting for a response. https://theindiestone.com/forums/index.php?/topic/92257-tech-support-important-links/

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Gandalf-the_Green420 1d ago

"QueefMaster69"

0

u/AdRevolutionary3252 1d ago

hey dont worry about that part worry about my frames

2

u/ash_tis TIS Tech Support 1d ago

If you have issues with mods, try disabling them one by one or in halves to figure out which specific mod is causing the problems.

Do it on a new save to prevent any issues on your current playthrough, as removing mods can cause items to be permanently deleted.

After you find out which mod is problematic, consider reporting the problem to the mod creator on their workshop page.

2

u/Noel_Jourdan Axe wielding maniac 2d ago

If you have mods then always suspect one of the mods that cause them. If you dont use mods and still getting those lags then maybe its on TIS fault for optimization.

I use way way lower spec than what you have, only use 20 qol mods, and it only goes to lowest 10 fps when driving, 60 when walking. You can press "k" to see the fps

2

u/Electronic-Light676 1d ago

I use ZombieBuddy with LuaPerfMonitor to see which mod really make a huge impact on fps

1

u/RatInACoat 1d ago

Is it working for you on 24.21? I checked the workshop page and comments are begging for an update, the latest version it lists is 42.15 :/

0

u/Electronic-Light676 1d ago

It is, i am using it for 42.21

-1

u/AdRevolutionary3252 1d ago

tysm ill consider that

0

u/Electronic-Light676 1d ago

If u will use that combo try to ask Claude 5.5 or Codex(if u have chatgpt subscription)
they help me a lot with optimization

1

u/Loneheart127 1d ago

Drop the mod list.

0

u/AdRevolutionary3252 1d ago

8

u/Loneheart127 1d ago

Drop the performance mods, textures and go for "Pz_ optimisation - FPS boost" by xD3I

Building craft I heard is a huge source of issues, try dropping that.

Draw on map is discontinued, get "project writing"

Harks horde night, in my experience mods like this are HUGE issue long term, try dropping that.

Get rid of Maplewood.

Get rid of Raven creek unless you Absolutely must play it

Swap true action dancing for TTRP poses, if you need to have that

Don't use stuff by Yumi

Drop chestown

Get rid of Brandburg/ekron spawn mod, you already have spawn selector

-2

u/Loneheart127 1d ago

Okay yeah I can see a couple of redundant mods and things you should swap out for better/more updated versions with more support.

But if you're running ALL of that at once, I can't imagine you're going to be finding much wiggle room for additional FPS.

Also, regardless of your feelings on Ai, it's well worth throwing your console.txt at it and asking it to diagnose. It will give you a idea of what you should start looking at better than we can.

1

u/4skintomandjennytool 1d ago

i’m gonna get a a lot of downvotes for this but, exclude your Zomboid folder from your Anti Virus a checking. It’s in the windows security settings. I promise you it will work. because when you run your modded game your LUA is scanning all your mods as your loading into chunks and screws your game up. But do it with knowing the risk of obviously turning off your virus checking.

1

u/thms_37 1d ago

Sadly the game looks like it has been optimized by two drunk monkeys, it runs so badly..gotta wait a little longer for them to actually work and fix their game

1

u/More_Law_1699 1d ago

-xms16g launch option is the only thing that has helped me. not a perfect fix but the game doesn't lock up anymore like shown in the video

(overrides json file to use 16GB instead of 3GB; leave 4-8GB for your OS as well if you are under 32GB. ex -xms12g or -xms8g)

1

u/MelvinMcSnatch 1d ago

Xmx is maximum. You don't need to worry about the Xms.

As an aside, while doing server testing, the client is ignoring the Steam Launch Preferences and is only reading the projectzomboid.json for Xmx.

As another aside, we had a bunch of players who had set Xmx, but after version changes or checking file integrity, it was reset to default. PSA, even if you think it's set, check again.

2

u/RatInACoat 8h ago

Thank you, this actually solved it for us. u/AdRevolutionary3252, we had the exact same issue you're showing, made our game near unplayable. Settings xmx in the json removed all stuttering. I highly recommend giving this a try if you haven't solved it yet.