FPS marker below the map and group count display

This commit is contained in:
Wyqer 2018-04-08 10:08:15 +02:00
parent 1b616e2feb
commit 14f8d0b71a
No known key found for this signature in database
GPG Key ID: 2D3FEE0019ED51F5
3 changed files with 9 additions and 6 deletions

View File

@ -30,13 +30,14 @@ if (!isServer) then {
};
};
private _myfpsmarker = createMarker [format ["fpsmarker%1", _sourcestr], [500, 500 + (500 * _position)]];
private _myfpsmarker = createMarker [format ["fpsmarker%1", _sourcestr], [0, -500 - (500 * _position)]];
_myfpsmarker setMarkerType "mil_start";
_myfpsmarker setMarkerSize [0.7, 0.7];
while {true} do {
private _myfps = diag_fps;
private _localgroups = {local _x} count allGroups;
private _localunits = {local _x} count allUnits;
_myfpsmarker setMarkerColor "ColorGREEN";
@ -44,7 +45,7 @@ while {true} do {
if (_myfps < 20) then {_myfpsmarker setMarkerColor "ColorORANGE";};
if (_myfps < 10) then {_myfpsmarker setMarkerColor GRLIB_color_enemy_bright;};
_myfpsmarker setMarkerText format ["%1: %2 fps, %3 local units", _sourcestr, (round (_myfps * 100.0)) / 100.0, _localunits];
_myfpsmarker setMarkerText format ["%1: %2 fps, %3 local groups, %4 local units", _sourcestr, (round (_myfps * 100.0)) / 100.0, _localgroups, _localunits];
sleep 15;
};

View File

@ -12,19 +12,20 @@ waitUntil {sleep 1; !isNil "active_sectors"};
while {true} do {
if (isServer) then {
diag_log format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Total units: %3 - Hostile units: %4 - Local units: %5 - Vehicles: %6 - Active Sectors: %7 - Active Scripts: %8",
diag_log format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Local groups: %3 - Local units: %4 - Total units: %5 - Vehicles: %6 - Active Sectors: %7 - Active Scripts: %8",
_source,
((round (diag_fps * 100.0)) / 100.0),
count allUnits,
{side group _x == GRLIB_side_enemy} count allUnits,
{local _x} count allGroups,
{local _x} count allUnits,
count allUnits,
count vehicles,
count active_sectors,
diag_activeScripts];
} else {
private _text = format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Local units: %3 - Active Scripts: %4",
private _text = format ["[KP LIBERATION] [STATS] Source: %1 - FPS: %2 - Local groups: %3 - Local units: %4 - Active Scripts: %5",
_source,
((round (diag_fps * 100.0)) / 100.0),
{local _x} count allGroups,
{local _x} count allUnits,
diag_activeScripts];
_text remoteExec ["diag_log",2];

View File

@ -172,6 +172,7 @@ class Missions
* Tweaked: Guerilla forces event chances, strength gain values and unit amounts.
* Tweaked: The Commander / Admin can now change the permissions of offline players.
* Tweaked: BI Revive is now automatically deactivated if ACE Medical is loaded.
* Tweaked: FPS map marker is now below the map and also shows count of local groups.
* Fixed: Placement of buildings after save/load. Thanks to [Cre8or](https://github.com/Cre8or)
* Fixed: Sometimes helicopters exploded when spawning on the deck of the USS Freedom.
* Fixed: Players couldn't ziptie the civilian informant, if playing with ACE.