Skip to content

chore: add performance budgets and stress tooling - #11

Merged
pes7 merged 33 commits into
masterfrom
refactor/performance-budgets-stress-tooling
Jul 27, 2026
Merged

pes7 merged 33 commits into
masterfrom
refactor/performance-budgets-stress-tooling

Conversation

@pes7

@pes7 pes7 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This stacked PR adds measurable performance budgets and repeatable stress-test tooling on top of refactor/rendering-physics-content-standards.

Completed scope

  • adds ZoneUA.Performance runtime assembly
  • adds PerformanceBudgetProfile
  • adds StressScenarioDefinition
  • adds pure PerformanceBudgetEvaluator
  • adds capture statistics with average FPS, p95 main/render time and maximum GC/memory values
  • adds RuntimePerformanceMonitor based on ProfilerRecorder
  • records FPS, main/render thread time, GC allocation, reserved memory, pool counts, NPCs, projectiles and generated objects
  • adds development overlay with pass/warning/fail results
  • exports JSON and CSV captures to Application.persistentDataPath
  • adds PerformanceStressRunner for repeatable world, NPC, projectile and generated-object load
  • cleans stress objects through the hardened runtime pool when possible
  • adds Editor command to create/select a stress harness in the open scene
  • adds EditMode coverage for budget evaluation and capture statistics
  • adds scripts/check_performance_capture.py for CI-side JSON threshold checks
  • adds Docs/PERFORMANCE_BUDGETS_STRESS_TESTING.md

Stacking

Base branch: refactor/rendering-physics-content-standards

Merge after PR #10, or retarget after earlier stacked PRs are merged.

Unity setup

Create:

  • Zone UA/Performance/Budget Profile
  • Zone UA/Performance/Stress Scenario

Then run:

Zone UA -> Performance -> Create Stress Harness In Open Scene

Assign the budget profile, stress scenario, production NPC prefab, projectile prefab, world generator and optional generated-load prefab.

Validation required in Unity 6000.5.5f1

  • project compiles with zero Console errors
  • all PerformanceBudgetTests pass
  • ProfilerRecorder markers resolve on development desktop
  • stress harness runs warm-up and capture windows
  • world regeneration occurs only when configured
  • production NPC/projectile prefabs are used
  • pool counts return to the expected level after cleanup
  • JSON and CSV reports are written
  • average FPS and p95 frame-time values are plausible
  • check_performance_capture.py accepts a passing capture and rejects a failing one
  • overlay is disabled for production builds
  • representative desktop and Android baselines are recorded before thresholds are tightened

The code scope is complete. This PR remains draft because Unity compilation, ProfilerRecorder availability, Play Mode stress execution and target-device baselining cannot be run in this environment.

@pes7
pes7 force-pushed the refactor/rendering-physics-content-standards branch from 693326d to e6622cf Compare July 27, 2026 20:44
pes7 added 28 commits July 27, 2026 22:52
@pes7
pes7 force-pushed the refactor/performance-budgets-stress-tooling branch from fc2e8d1 to ea2a08c Compare July 27, 2026 20:53
@pes7
pes7 changed the base branch from refactor/rendering-physics-content-standards to master July 27, 2026 20:53
@pes7
pes7 marked this pull request as ready for review July 27, 2026 20:53
@pes7
pes7 merged commit 6292097 into master Jul 27, 2026
3 of 4 checks passed
@pes7
pes7 deleted the refactor/performance-budgets-stress-tooling branch July 28, 2026 17:56
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.

1 participant