Skip to content

es_extended: perf cleanups + server-side input hardening#1791

Open
ASTROWwwW wants to merge 7 commits into
esx-framework:devfrom
ASTROWwwW:perf/audit-fixes
Open

es_extended: perf cleanups + server-side input hardening#1791
ASTROWwwW wants to merge 7 commits into
esx-framework:devfrom
ASTROWwwW:perf/audit-fixes

Conversation

@ASTROWwwW

@ASTROWwwW ASTROWwwW commented Jun 21, 2026

Copy link
Copy Markdown

Two small performance cleanups plus a round of defensive server-side hardening.

Perf

  • Remove idle per-frame client threads
  • Skip redundant metadata sync on player save

Hardening

  • Stricter server-side validation and access guards on several core net events and callbacks
  • Reduce data exposed to non-privileged callers

- actions: fold ped tracking into SlowLoop, removing a dedicated per-frame thread
- adjustments: skip the ammo/vehicle-rewards thread when both features are disabled
- adjustments: hoist Config.Multipliers out of the per-frame loop
- events: skip the pickup loop when empty and resolve the closest player only on pickup
updateHealthAndArmorInMetadata set health/armor/lastPlaytime through setMeta, which pushed
the full metadata table to the owning client on every save (three times per save). These
values are server-authoritative, so write them straight to metadata without the client event.
@CLAassistant

CLAassistant commented Jun 21, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ASTROWwwW ASTROWwwW changed the base branch from main to dev June 21, 2026 23:19
@ASTROWwwW ASTROWwwW changed the title perf(es_extended): remove idle per-frame threads and redundant save-time metadata sync es_extended: perf cleanups + server-side input hardening Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants