Jump to content
  • 0

FPS issue #1926 - If you missed this fix read up


kingpapawawa

Question

Getting about average 10 more FPS on 3 servers.

I believe @BigEgg gets the credit for figuring out this one. @ndavalos wrote the code below to temp fix it and @icomrade patched it for the next update.... but unless you follow the github issues, (and you should)  you may have missed this one as its buried in a post i made several weeks ago.

this code goes at the bottom of your init.

see this for more info https://github.com/EpochModTeam/DayZ-Epoch/issues/1926

edit:  this code will need to be removed when 1.0.6.2 comes out.

Posting this because ive spoken with 2 other server owners who hadn't seen this info.

if (hasInterface) then {
dayz_rollingMessages = {
	private "_showText";
	disableSerialization;
	_showText = {
		private "_textLine";
		15 cutRsc ["RSC_DZ_Messages","plain"];
		_textLine = (uiNamespace getVariable "DZ_Messages") displayCtrl 4099998;
		_textLine ctrlSetStructuredText (parseText _this);
		_textLine ctrlCommit 0;
	};
	if (typeName _this == "ARRAY") exitWith {(_this select 0) call _showText}; //Special or multi-line message
	if ((diag_ticktime - Message_1_time) < 5) then {
		if ((time - Message_2_time) < 5) then {
			Message_3 = Message_2;
			Message_3_time = Message_2_time;
		} else {
			Message_3 = "";
		};
		
		Message_2 = Message_1;
		Message_2_time = Message_1_time;
	} else {
		Message_2 = "";
		Message_3 = "";
	};

	Message_1 = _this;
	Message_1_time = diag_ticktime;
	(format ["%1<br></br>%2<br></br>%3", Message_1, Message_2, Message_3]) call _showText;
};
};
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
3 hours ago, kingpapawawa said:

Getting about average 10 more FPS on 3 servers.

I believe @BigEgg gets the credit for figuring out this one. @ndavalos wrote the code below to temp fix it and @icomrade patched it for the next update.... but unless you follow the github issues, (and you should)  you may have missed this one as its buried in a post i made several weeks ago.

this code goes at the bottom of your init.

see this for more info https://github.com/EpochModTeam/DayZ-Epoch/issues/1926

edit:  this code will need to be removed when 1.0.6.2 comes out.

Posting this because ive spoken with 2 other server owners who hadn't seen this info.


if (hasInterface) then {
dayz_rollingMessages = {
	private "_showText";
	disableSerialization;
	_showText = {
		private "_textLine";
		15 cutRsc ["RSC_DZ_Messages","plain"];
		_textLine = (uiNamespace getVariable "DZ_Messages") displayCtrl 4099998;
		_textLine ctrlSetStructuredText (parseText _this);
		_textLine ctrlCommit 0;
	};
	if (typeName _this == "ARRAY") exitWith {(_this select 0) call _showText}; //Special or multi-line message
	if ((diag_ticktime - Message_1_time) < 5) then {
		if ((time - Message_2_time) < 5) then {
			Message_3 = Message_2;
			Message_3_time = Message_2_time;
		} else {
			Message_3 = "";
		};
		
		Message_2 = Message_1;
		Message_2_time = Message_1_time;
	} else {
		Message_2 = "";
		Message_3 = "";
	};

	Message_1 = _this;
	Message_1_time = diag_ticktime;
	(format ["%1<br></br>%2<br></br>%3", Message_1, Message_2, Message_3]) call _showText;
};
};

Also throw some credit to @MG-Maximus - he was the one that lead me to test the issue ;)

Link to comment
Share on other sites

  • 0

@salival   I always had the same scripts on my servers before and my FPS was much better than now. Except for DZAI that I have an little error there is nothing in my RTP. I am going to take a test server to see what the hell is going on. Actual scripts on the server are;

Air Raid
Group management 
IT module
trader safe zone
harvest hemp
Ikea/treasure hunt
Loadout
binocular vector
dance
single currency
spawn selection
logistic
deployable
backpack anti thef
no weight
slow zeds
1 step building     
para spawn
plot 4 life
snap building vector
scan eyes
Advance trading
DZAI
WAI
DZMS
ear plugs 
self bloodbag
study body

In server side bunch building added, Roads and village I made.

I think thats it. Some are there by default. I had more scripts before and FPS was always nice.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...