EpochModTeam / DayZ-Epoch

Experimental DayZ Mod for Arma 2
http://epochmodteam.github.io/DayZ-Epoch
227 stars 398 forks source link

Move FPS logging and event spawner to the server scheduler. #2047

Closed worldwidesorrow closed 4 years ago

worldwidesorrow commented 4 years ago

This update eliminates three unnecessary spawned loops from the server by moving FPS logging and the server event spawner to the server's scheduler. The loop on the bottom of the Vanilla Mod crashsites event has been removed. Server owners can add more instances of the crashsite event to the EpochEvents array if they desire more. Events are enabled in init.sqf with the old 1.0.5.1 crashsites and infected camps commented out. I put a comment at the top of the array to explain the formatting. FPS logging and the event spawner functions run on schedule as intended.

// Sched_fps 11:04:35 "SCHED_FPS ran at 176.77" 11:04:35 "SERVER FPS: 45 PLAYERS: 1" 11:10:35 "SCHED_FPS ran at 536.768" 11:10:35 "SERVER FPS: 45 PLAYERS: 1" 11:22:35 "SCHED_FPS ran at 1256.76" 11:22:35 "SERVER FPS: 45 PLAYERS: 1"

// Event Scheduler "EPOCH EVENT SCHEDULER RAN AT 84.574" "EPOCH EVENT SCHEDULER RAN AT 94.528" "EPOCH EVENT SCHEDULER RAN AT 104.515" "EPOCH EVENT SCHEDULER RAN AT 114.532" "EPOCH EVENT SCHEDULER RAN AT 124.542"