-
Notifications
You must be signed in to change notification settings - Fork 0
Client FPS And State Telemetry Reference
Not in master.
Client_FpsReport.sqfandClient_StateAudit.sqfdo not exist in master 0139a346. This page documents the planned subsystem design; all line/param citations are from the design intent, not live source. Paths relative to Missions/[55-2hc]warfarev2_073v48co.chernarus/ unless noted. Arma 2 OA 1.64. NOTE:Client_FpsReport.sqfandClient_StateAudit.sqfdo not exist in this commit; the subsystem described here is speculative/planned and has no live source in master.
Two independent client-side diagnostic loops feed the RPT with framerate and accumulated-state data. Client_FpsReport is a lobby-param-gated, player-only loop that samples diag_fps and ships an [uid, name, avgFps, minFps] packet to the server, which stamps it with day/night context for a staged day-vs-night performance study. Client_StateAudit is an always-on per-minute loop that emits one STATE-AUDIT: line relating diag_fps to script-count proxies and retained-state counters (markers, groups, corpses) so a session's FPS decay can be correlated with what the client is holding. The two share no variables and run on separate cadences; they are documented together because they form the client half of this mission's framerate telemetry surface.
This page owns the param/variable contract, the publish cadence and clamps, the server stamp schema, and the analysis intent. The incidental cross-link in Marker-Loop-Engine-And-Registries (the marker loop writing WFBE_CL_MarkerBudgetLastServiced that StateAudit reads) covers the marker loop, not these telemetry functions.
The reporter lives in Client/Functions/Client_FpsReport.sqf:1-38, spawned from Client/Init/Init_Client.sqf:1042 as [] spawn Compile preprocessFileLineNumbers "Client\Functions\Client_FpsReport.sqf" at the tail of client init (right after CLIENT_INIT_READY is published at Init_Client.sqf:1036-1038).
| Step | Source | Detail |
|---|---|---|
| Interface gate | Client_FpsReport.sqf:11 |
if (!hasInterface) exitWith {} — dedicated server and headless clients have no meaningful client FPS and would pollute the dataset. |
| Param gate | Client_FpsReport.sqf:12 |
if ((missionNamespace getVariable ["WFBE_C_CLIENT_FPS_REPORT", 0]) != 1) exitWith {} — the lobby param is the single on/off switch (defaults to 0 if absent here). |
| Interval read + clamp | Client_FpsReport.sqf:16-17 |
_interval = missionNamespace getVariable ["WFBE_C_CLIENT_FPS_REPORT_INTERVAL", 60]; if _interval < 15 it is forced to 15. |
| Sample count | Client_FpsReport.sqf:18 |
_n = 5 one-second samples averaged per report — smooths single-frame spikes and captures the worst frame. |
| Startup stagger | Client_FpsReport.sqf:21 |
sleep (5 + random 20) so N players don't all publish on the same server tick. |
| Sample loop | Client_FpsReport.sqf:23-32 |
While !WFBE_GameOver: takes 5 samples of diag_fps at 1s spacing, tracks running _sum and _min (seeded 1e6), then _avg = _sum / _n. |
| Publish | Client_FpsReport.sqf:34-35 |
WFBE_FPS_REPORT = [getPlayerUID player, name player, round _avg, round _min]; publicVariableServer "WFBE_FPS_REPORT". |
| Inter-report sleep | Client_FpsReport.sqf:37 |
sleep (_interval - _n) — the 5 sampling seconds are subtracted so each cycle is exactly _interval long. |
The packet schema is [uid, name, round avg, round min]. The loop terminates when WFBE_GameOver becomes true. Because the whole body is gated by hasInterface, only player clients ever appear in the published dataset.
Both params are defined in Rsc/Parameters.hpp and selectable from the admin lobby; the SQF reads them through missionNamespace getVariable with its own fallback defaults rather than from a constants file (no entry in Common/Init/Init_CommonConstants.sqf).
| Param | Source | Values | Default | Role |
|---|---|---|---|---|
WFBE_C_CLIENT_FPS_REPORT |
not in master — planned only | — | — | Master on/off gate (planned); checked identically on client (Client_FpsReport.sqf:12) and server (Init_Server.sqf:708). |
WFBE_C_CLIENT_FPS_REPORT_INTERVAL |
Rsc/Parameters.hpp:579-584 |
{15,30,60,120,300} s |
60 |
Seconds between reports; client clamps to a 15s floor at Client_FpsReport.sqf:17. |
This discrepancy applies only when the params are added to master. Neither param exists in the current Rsc/Parameters.hpp (563 lines). As written the telemetry is ON by default in the lobby. The SQF-side fallback defaults (0 for the gate, 60 for the interval) only apply if the variable is wholly absent, not when the param simply takes its lobby default.
The receiver is armed in Server/Init/Init_Server.sqf:701-729, gated by the same param so the event handler is never registered when telemetry is off.
| Element | Source | Detail |
|---|---|---|
| Arm gate | Init_Server.sqf:708 |
Only registers the handler when WFBE_C_CLIENT_FPS_REPORT == 1. |
| PV event handler | Init_Server.sqf:709-711 |
"WFBE_FPS_REPORT" addPublicVariableEventHandler { ... }; the packet is _d = _this select 1. |
| Live player count | Init_Server.sqf:712 |
_players = { isPlayer _x } count playableUnits. |
| Live HC count | Init_Server.sqf:715 |
_hc = { !isNull _x && {!isNull leader _x} && {alive leader _x} } count (missionNamespace getVariable ["WFBE_HEADLESSCLIENTS_ID", []]) — counts non-null, alive-leader headless clients so the planned 0-HC/1-HC/2-HC comparison days bucket cleanly across launches. |
| Log emission | Init_Server.sqf:716-726 |
Single diag_log of a pipe-delimited `FPSREPORT |
| Confirmation | Init_Server.sqf:728 |
["INITIALIZATION", "...Client FPS telemetry receiver armed..."] Call WFBE_CO_FNC_LogContent. |
The emitted line (Init_Server.sqf:716-726) carries these fields in order:
| Field | Source | Value |
|---|---|---|
uid |
:716 |
_d select 0 (player UID). |
fps |
:717 |
_d select 2 (rounded client avg FPS). |
fpsMin |
:718 |
_d select 3 (rounded client min FPS). |
players |
:719 |
live player count. |
hc |
:720 |
live headless-client count. |
dnMode |
:721 |
missionNamespace getVariable ["WFBE_DAYNIGHT_ENABLED", 1] — day/night cycle ON/OFF state (constant default 1, Init_CommonConstants.sqf:84). |
daytime |
:722 |
round (daytime * 100) / 100 — in-game time of day. |
sun |
:723 |
round (sunOrMoon * 100) / 100 — sun/moon elevation factor. |
t |
:725 |
round (time / 60) — minute-bucketed mission time. |
name |
:726 |
_d select 1, logged LAST so a ` |
The server stamps each report with what the client cannot cheaply know — live player count, live HC count, day/night mode, time of day, sun elevation and the server's own diag_fps (srvFps, :724). The stated purpose (Init_Server.sqf:701-707, Client_FpsReport.sqf:1-7) is to bucket client FPS day-vs-night and day/night-cycle ON-vs-OFF over a staged rollout (2026-06-15, "Net_2 request") to A/B the accelerated day/night cycle.
The audit loop lives in Client/Functions/Client_StateAudit.sqf:1-35, launched from Client/Init/Init_Client.sqf:389 as [] execVM "Client\Functions\Client_StateAudit.sqf". Unlike the FPS reporter it has no param gate — it runs on every machine that reaches client init. It waits on commonInitComplete (StateAudit.sqf:8; set true at Common/Init/Init_Common.sqf:419) before looping, and runs while {!WFBE_GameOver} with a fixed sleep 60 (StateAudit.sqf:34).
Each pass builds one STATE-AUDIT: diag_log line (StateAudit.sqf:24-26) from these fields:
| Field | Source | Value |
|---|---|---|
time |
:25 |
round time. |
fps |
:25 |
diag_fps. |
activeSQFScripts |
:16 |
hardcoded -1 — diag_activeSQFScripts is Arma 3 (1.44+) only and even a call-compile probe errors on OA 1.64, so the column is kept as a constant for schema stability. |
allMapMarkers |
:25 |
hardcoded -1 (allMapMarkers is Arma-3-only, N/A in A2 OA). |
markerScripts |
:18 |
missionNamespace getVariable ["PerformanceAuditMarkerScripts", -1] — the OA script-count proxy. |
aarMarkerScripts |
:19 |
missionNamespace getVariable ["PerformanceAuditAARMarkerScripts", -1]. |
allGroups |
:25 |
count allGroups. |
allDead |
:25 |
count allDead (retained corpses). |
mapOpen |
:20 |
1 if visibleMap else 0. |
markerRegSize |
:21 |
count WFBE_CL_UnitMarkerRegistry, or -1 if nil. |
budgetServiced |
:22 |
missionNamespace getVariable ["WFBE_CL_MarkerBudgetLastServiced", -1] — the marker-loop tick written at Marker-Loop :525-531. |
After emitting the line, the loop optionally forwards it to the audit sink (StateAudit.sqf:28-32): when PerformanceAudit_Record is not nil and PerformanceAuditEnabled is true, it calls ["state_audit", 0, _line, "CLIENT"] Call PerformanceAudit_Record. That sink is documented in Performance-Audit-Writer-Function-Reference; neither client telemetry loop nor the FPS-report round-trip is covered there.
The analysis intent (StateAudit.sqf:1-5): one line per minute lets a busy session show whether FPS decay tracks scheduled-script count or retained state. The header note that Arma save/load resumes suspended scheduled scripts — so save/load FPS-recovery tests do not isolate VM count — is why this log plus the PerformanceAuditMarkerScripts counters are treated as the real A/B proof.
| Client_FpsReport | Client_StateAudit | |
|---|---|---|
| Launch |
Init_Client.sqf:1042 (spawn Compile) |
Init_Client.sqf:389 (execVM) |
| Gate |
hasInterface + WFBE_C_CLIENT_FPS_REPORT == 1
|
commonInitComplete only (always runs) |
| Cadence |
WFBE_C_CLIENT_FPS_REPORT_INTERVAL, floor 15s |
fixed 60s |
| Output | PV WFBE_FPS_REPORT → server FPSREPORT|v1| line |
local STATE-AUDIT: diag_log (+ optional sink) |
| Crosses the wire? | Yes (publicVariableServer) |
No (local diag only) |
| Terminates on | WFBE_GameOver |
WFBE_GameOver |
Home | Agent Guide | Current live state | Release 1.2.2 (B91) | Quickstart | Progress | Lifecycle wait-chain | Join/disconnect | Parameters/build | Assets/config | SQF atlas | PV index | Modules | Support/specials | Commander/HQ | Commander vote/reassign | Construction/CoIn | Construction cleanup | WDDM compositions | Factory/purchase | Upgrades/research | Towns/camps/capture | Victory/endgame | Markers/cleanup | Server runtime | AI runtime/HC | AI commander audit | HC delegation | Town AI safety | Commander reassignment | Resistance supply | Player UI workflow | UI atlas | Respawn/death | Gear template filter | Vehicle cargo loop | Service guards | UI IDD repair | UI design inspiration | WASP overlay | Feature status | Source propagation | release readiness | Tooling readiness | Integration trust | AntiStack DB | Owner decisions | Shelved registry | Abandoned feature revival | Hardening roadmap | PVF dispatch | Server authority | ICBM authority | Attack-wave authority | Telemetry families | AICOM V2 cutover | Consumer port map | Testing workflow | Server ops | Web tools | Ecosystem repos | Arma 2 OA refs | A2 traps | OA compatibility audit | Coverage ledger | Navigation inventory | Pruning ledger | Knowledge roadmap | Agent context | Collab protocol | Worklog | Audit archive 2026-07 | Briefing reference | Utes invasion concept
- Shelved AICOM concepts - revivable someday ideas (owner-shelved 2026-07-03)
Docs rule: source-backed claims only; Arma 2 OA scripting docs only; gameplay edits start in Missions/[55-2hc]warfarev2_073v48co.chernarus.
- Getting started
- Status and coordination
- Agent context
- Agent collaboration protocol
- Agent worklog
- Agent worklog archive
- Progress dashboard
- PR cleanup and integration lab
- Shelved PR #169: gear price double-count
- Shelved PR #194: Chernarus no-trees
- Coordination board
- Codebase coverage ledger
- Bottleneck removal queue
- Current source status
- Wiki mirror reconciliation
- Navigation inventory
- Registers
- Agent orchestration
- Architecture
- Architecture overview
- Mission entrypoints and lifecycle
- Lifecycle wait chain
- Player join/disconnect and AntiStack lifecycle
- Mission parameters/localization/build inputs
- Stringtable localization key-family catalog
- Source inventory
- Content structure and maps
- Assets/config/localization/parameters
- Mission start parameters index
- Code and networking
- Gameplay systems
- Core systems index
- Gameplay systems atlas
- Commander/HQ lifecycle atlas
- Economy, towns and supply
- Economy system reference
- Balance asymmetries
- Anti-stack skill-balance mechanic
- Empty-side supply income stagnation
- Towns, camps and capture atlas
- Victory and endgame atlas
- Victory conditions reference
- Territorial victory reference
- Marker cleanup and restoration
- Marker loop engine and registries
- Map marker families content catalog
- Marker subsystem function reference
- Client marker FSM updater map
- Support specials and tactical modules
- SCUD TEL tactical munitions
- Naval HVT objectives (carriers/SCUD)
- SCUD saturation strike mechanic
- Takistan airfield FPV drone design
- Construction and CoIn systems
- Structure damage reduction & friendly-fire
- Construction logic list cleanup
- Flak tower & WDDM anchor compositions
- Resistance supply scaffold
- GUER Insurgents faction overview
- GUER Insurgents branch audit
- GUER insurgent player economy
- GUER Commissar Panel
- GUER air-defense loop (Ka-137/Mi-24)
- Upgrades and research atlas
- Supply mission architecture
- Supply mission authority cleanup
- Current supply helicopters PR1
- Respawn and death-loop lifecycle
- Vehicle theft economy pitch
- GUER tunnel network pitch
- Content, reference and catalogs
- Faction unit/vehicle roster catalog
- Auxiliary/SF/civilian unit catalog
- Gear store loadout route catalog
- Upgrade research (cross-faction)
- Gear store price and upgrade catalog
- Gear store catalog (complete, per faction)
- Defense structures catalog
- Artillery reference per faction
- AI squad team templates catalog
- Town AI lifecycle reference
- Town AI group composition catalog
- Class-skill system reference
- Player skill abilities reference
- Default gear template content catalog
- Chernarus map content reference
- Takistan map content reference
- Takistan features
- Takistan parity reference
- Takistan oilfields objective reference
- IRS IR-smoke countermeasure
- Arty module special munitions
- Zeta cargo sling-load reference
- Spawn primitive function reference
- Kill and score pipeline
- Waypoint helper function reference
- Position and proximity function reference
- Side/team state function reference
- Player AI watchdog and recovery
- AICOM stuck-recovery v2
- LoadoutManager data-model contributor guide
- Discord status bot setup and reference
- GLOBALGAMESTATS extension reference
- New player quickstart (player guide)
- Optional client mods (player guide)
- Earning funds and score (player guide)
- Vehicle service and logistics (player guide)
- Commander's handbook (player guide)
- Tactical support menu
- Paradrop player experience
- Supply missions (player guide)
- In-game briefing & Diary field manual
- Playable maps catalog
- Faction root variables reference
- Faction base structures catalog
- Counter-battery radar system
- Bank, Reserve and Artillery Radar structures
- Map ruleset model and object config
- Countermeasures module reference
- Vehicle countermeasure (flares/spoofing)
- UAV terminal and spotter system
- Artillery firing function reference
- Service Point pricing model
- Medic redeployment truck (forward spawn)
- Side-patrol runtime and convoy mechanics
- Day/night cycle and weather system
- Config lookup helper reference
- CIPHER sort utilities reference
- Modded maps status and content
- BattlEye filter setup and OA taxonomy
- Player squad/group join protocol
- AutoFlip vehicle recovery
- Engine stealth fuel toggle
- Valhalla vehicle climbing-assist
- Missile and ordnance Fired-EH reference
- Vehicle equip and rearm reference
- Array and collection utilities
- Server composition spawner reference
- Upgrade queue server loop
- Map boundaries and off-map enforcement
- Namespace/profile/diagnostic utilities
- Group bool getVariable A2-OA trap
- Vehicle weapon balance init
- View distance auto-throttle
- Camp & respawn-camp getters
- Performance audit writer
- Site clearance (bulldozer)
- Factory queue cancel & refund
- AI commander tunable constants
- Experimental feature-flag constants
- Flag system quick reference
- Mission tunable constants catalog
- Gear parsing & cargo capacity
- Structure dressing function
- Paradrop delivery functions
- ICBM nuke client VFX & radiation
- Server HandleSpecial router
- LocalizeMessage chat router
- Gear buy-menu render & price functions
- Server broadcast & telemetry loops
- Per-unit client init pipeline
- Vehicle marking & texture pipeline
- Defense category & budget
- Legacy AI order primitives
- Commander-team driver
- AICOM command verbs
- AICOM behavior fix taxonomy
- AI commander wildcard deck reference
- AICOM aircraft and airfield system
- Static-defense manning
- End-of-game stats screen
- AI commander execution loop
- Deployable bipod / weapon resting
- Town-economy getters
- Server-init deadspawn & airfield probe
- GUER VBIED detonate action
- Resource income-tick engine
- AI commander treasury accessors
- PVF send-helper contracts
- AICOM logging & AICOMSTAT telemetry
- AICOMSTAT v2 event census
- WASPSCALE v2 telemetry
- WASPSCALE v2-ext coverage audit
- Telemetry families reference
- Group lifecycle & entity reaping
- Batch AI spawner orchestrator
- Client funds/income HUD readout
- Server group GC & cap warning
- Town runtime tuning constants
- Client input/hotkey handler
- WASP base-repair system
- WASP DropRPG launcher/ordnance
- CoIn construction-interface client engine
- Town-capture garrison & airfield rebuild
- Map-control & minimap templates
- Client FPS & state telemetry
- Client service-proximity getters
- Airfield-exclusive roster & unit hints
- Unit-camera spectator system
- Town-garrison patrol/defense worker
- RequestTeamUpdate squad-discipline
- Arma2Warfare GPT assistant
- LoadoutManager build configs & defines
- GLOBALGAMESTATS extension logging
- Discord bot instrumented logging
- Eden/Everon & Taviana map content
- Cruise missile strike asset
- AI / HC
- AI headless and performance
- AI mods and pathfinding reference
- Headless client scaling and topology
- AI runtime/HC loop map
- Headless client init and stat loop
- HC delegation target selection
- Player AI caps and role balance
- Old WarfareBE FPS comparison
- AI commander autonomy audit
- Upstream BE 2073 AICOM delta
- Parent 2.073 divergence audit
- AI commander capture & fun plan
- AI commander B69 improvement roadmap
- AI commander B69 implementation sketches
- AICOM V2 cutover status
- Headless delegation and failover
- Commander reassignment call shape
- GUER Director living-resistance pitch
- Quality and operations
- Foundation perf findings & Tier-3 dead-ends
- Dead/stale code register
- Commander vote/reassignment
- Attack-wave authority
- Server runtime and operations
- Server ops runbook
- JIP enrollment & client data delivery (b74.2 lessons)
- Server gameplay runtime atlas
- PerformanceAuditAnalyzer
- Performance opportunity sweep
- Documentation plan
- Knowledge platform roadmap
- Wiki quality audit
- Wiki pruning and relevance ledger
- Audit findings queue (2026-06-03)
- Deep review findings
- Client UI / server-loop perf findings
- Performance gain simulation
- Self-host testing field notes
- Cleanup and work lanes
- Hardening and authority
- UI / player workflows
- Client UI, HUD and menus
- UI HUD and dialogs
- Player UI workflow map
- Client UI systems atlas
- UI IDD collision repair
- UI control class library reference
- UI theme palette and style macros
- UI design inspiration 2026-07
- Available-actions client gate FSM
- Gear/loadout/EASA atlas
- Gear template profile filter
- Vehicle cargo equip loop bounds
- Factory and purchase systems atlas
- Service menu affordability guards
- WASP overlay
- Class-skill system reference
- Skin selector and class swap
- Earplugs audio toggle
- Mission audio catalog
- HQ radio knowledge-base catalog
- QoL trio player hints
- Player vehicle/travel actions
- Tooling / release / integrations
- Tools and build workflow
- Warfare web tools
- Ecosystem & companion repos
- Zargabad tooling parity
- July 2026 release readiness
- Operator monitor and CPU affinity tools
- Tooling release readiness audit
- Source fix propagation queue
- Agent release readiness ledger
- Release source intake map
- Testing/debugging/release workflow
- Current RPT release gate
- RPT telemetry consumer port map
- External integrations
- Integration trust boundary audit
- AntiStack database extension audit
- Community & Dev
- Community & Dev
- Miksuu upstream wiki import / archive index
- Upstream changelog feature leads
- Developer history and upstream lessons
- Upstream Miksuu commit intel
- Upstream mining ledger
- Archive script mining v2
- Upstream BE 2073 AICOM delta
- Parent 2.073 divergence audit
- PR8 and Drone upstream lesson match
- Development lessons learned
- External research reports
- Audit archive 2026-07
- Briefing reference
- Utes invasion concept
- Miksuu archive: Home
- Miksuu archive: Welcome
- Miksuu archive: Big announcements
- Miksuu archive: Changelog
- Miksuu archive: Development process
- Miksuu archive: Discord bot
- Miksuu archive: Gameplay videos
- Miksuu archive: LoadoutManager
- Miksuu archive: Chernarus script architecture
- Base-game visual catalogs
- Compatibility and references
- HC upstream history and lessons
- Player stats branch audit
- BuyMenu EASA QoL branch audit
- Perf quick wins branch audit
- Commander positions branch audit
- Zargabad branch audit
- Quad AI Commander concept
- Arma 2 OA external reference guide
- Base-game config & image reference
- Arma 2 OA compatibility audit
- Arma 2 OA agent traps reference
- Arma 2 OA command versions
- Wiki source consistency
- External Arma 2 OA reference index