Closed joikd2 closed 11 years ago
Would making roadblocks and trash piles server-side actually help? As it is, clients are not rendering them in time. Even with the latest patch, the problem still does happen.
If it in fact would help the issue even more, I would love to see this happen. But if clients would still have trouble rendering the blocks even if they are server side there wouldn't be a point.
But I'd love to hear a developer's point of view on this, and if making them server-side would actually make any difference.
Spawning those objects server side wouldn't solve any gameplay related issues... Whether the objects are created locally when logging in or globally server side, the objects are there in both cases.
They currently aren't created locally when logging in by the client. They are streamed in on-the-fly by the client at a certain distance, then deleted again at a certain distance. That's where the server-side permanent spawning would eliminate the issue. Plus, my server has way more headroom than my client system. So, this would give a small performance boost to the clients, at a cost to the server (which can afford it).
Oops, you're right. Not sure what the hell I was thinking about. :smile:
I will revert to 1.7.6.1 behavior, where objects of the area were spawned at once to the incoming player. It will be to the detriment to the fps, but since in 1.7.6.1 nobody where complaining of this pseudo "streaming", we can revert to it.
Putting this to the server side is a very bad idea, since these data will be uploaded to every client connecting to the server (what is the benefit to this?), and the client will have to display all objects around 1600m (I think and I hope it's the limit), so less and less fps.
This functionality was there since the beginning of DayZ mod.
PS: I would like some video of the issue, just to see how bad it is.
I will record some gameplay of my server when there are very many people playing and post it here ASAP.
any news?
So sorry, forgot to record the video. Will be doing that tomorrow after I'm available.
I was playing tonight, and the problem still persists for many people.
Video was recorded just yesterday of my server with only a little amount of players online. It shows some roadblocks rendering seconds before I drive into the area, and a roadblock spawning as a slam into it with my vehicle, busting a tire.
www.youtube.com/watch?v=__HcFT4Gevc
Instead of the client streaming in the roadblocks/wrecks/junk, which sometimes causes a sudden appearance in front of a fast moving vehicle, the server streams it once upon server start, and makes it permanent. I have tested this on my server. It worked great with minimal server performance loss while giving a performance boost to clients. Credit for this goes to isathar at opendayz.net.
private ["_configBase","_tempList"];
if (isServer) then { _tempList = ["Chernogorsk","Elektrozavodsk","Balota","Komarovo","Kamenka","Kamyshovo","Prigorodki","Kabanino","Solnichniy","StarySobor","NovySobor","SouthernAirport","NorthernAirport","Berezino","Lopatino","GreenMountain","Zelenogorsk","Nadezhdino","Kozlovka","Mogilevka","Pusta","Bor","Pulkovo","Vyshnoye","Drozhino","Pogorevka","Rogovo","Guglovo","Staroye","Pavlovo","Shakhovka","Sosnovka","Msta","Pustoshka","Dolina","Myshkino","Tulga","Vybor","Polana","Gorka","Orlovets","Grishino","Dubrovka","Nizhnoye","Gvozdno","Petrovka","Khelm","Krasnostav","Olsha"]; for "_j" from 0 to ((count _tempList) - 1) do { _configBase = configFile >> "CfgTownGenerator" >> (_tempList select _j);
};
server_fillLocs = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_fillLocs.sqf";
_id = [] spawn server_fillLocs;