Jump to content

Displaying server FPS in the log


Recommended Posts

To bottom of server_functions.

if (isServer) then {
	[] spawn {	
		waitUntil {!(isNil "sm_done")};
		_lastFPS = diag_tickTime;
		while {true} do {			
			if ((diag_tickTime - _lastFPS) > 600) then {
				_lastFPS = diag_tickTime;
				_logFPS = format ["DEBUG FPS : %1 OBJECTS: %2 : PLAYERS: %3", diag_fps,(count (allMissionObjects "")),(playersNumber west)];
				diag_log (_logFPS);
			};
		};
	};
};
Link to comment
Share on other sites

 

To bottom of server_functions.

if (isServer) then {
	[] spawn {	
		waitUntil {!(isNil "sm_done")};
		_lastFPS = diag_tickTime;
		while {true} do {			
			if ((diag_tickTime - _lastFPS) > 600) then {
				_lastFPS = diag_tickTime;
				_logFPS = format ["DEBUG FPS : %1 OBJECTS: %2 : PLAYERS: %3", diag_fps,(count (allMissionObjects "")),(playersNumber west)];
				diag_log (_logFPS);
			};
		};
	};
};

 

Thank you. This worked.

Link to comment
Share on other sites

 

To bottom of server_functions.

if (isServer) then {
	[] spawn {	
		waitUntil {!(isNil "sm_done")};
		_lastFPS = diag_tickTime;
		while {true} do {			
			if ((diag_tickTime - _lastFPS) > 600) then {
				_lastFPS = diag_tickTime;
				_logFPS = format ["DEBUG FPS : %1 OBJECTS: %2 : PLAYERS: %3", diag_fps,(count (allMissionObjects "")),(playersNumber west)];
				diag_log (_logFPS);
			};
		};
	};
};

 thanks

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
  • Advertisement
  • Discord

×
×
  • Create New...