Re: RELEASE: DaiyZ ULTIMATE (Chernarus)
Posted by
DayZ_SP on
Dec 07, 2012; 5:48pm
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/RELEASE-DaiyZ-ULTIMATE-Chernarus-tp1163p1336.html
And about Niceonegunit's script, wont that lag down the mission pretty bad? I don't know why, but after about 30 min I started lagging pretty bad. And then it kinda went in waves, so it's a strange matter.
One difference between then and now is we have the "Clean Up Dead Bodies" command at our disposal.
So, if things start to slow down, we can take some of the load off the CPU and GPU by deleting dead / already looted bodies. Remember, this is a single-threaded program that has to manage a lot of routines (scripts, player data, loot tables, Zombie AI, etc.) at once. This is the primary reason it can slow to a crawl sometimes depending on the amount of instructions being processed simultaneously.
This is why I made the Clean Up script player controllable and not an script that loops during the game and deletes the dead bodies after X number of minutes / seconds. Sometimes you'll be engaged in a firefight, or running from Zombies, and it will be a good three minutes or more before you can make your way back to a dead bandit to get the gear. If I used a looping script it would delete bodies every two, or three minutes (like console games do to help with memory), but then you might miss out on some good loot. That's why it is a player controlled function and not a built-in mission function like MP servers have for deleting things on the server side to keep the processing load down.