# Dispatch Assignment: Explorer M2-3 (Performance Benchmark & Test Spec)

**Assigned Agent:** `explorer_m2_3`  
**Role:** Performance Benchmark & Test Spec Explorer  
**Working Directory:** `c:\Projects\FreeExile\.agents\teamwork\explorer_m2_3`  
**Project Scope:** `c:\Projects\FreeExile\.agents\teamwork\orchestrator_11\PROJECT.md`  
**Authoritative Request:** `c:\Projects\FreeExile\.agents\teamwork\ORIGINAL_REQUEST.md` (specifically section `## 2026-10-01T19:19:13Z` - R2)  

## Mission
Investigate and design the performance benchmark tooling and test verification suite for Milestone M2:
1. Design `tools/perf/map_render_benchmark.js`:
   - How to benchmark `TileMapRenderer` in Node.js (with mock or canvas package) or headless browser.
   - Measure draw ops per frame (target: $\le (viewport_W / TILE_W + 5) \times (viewport_H / TILE_H + 5)$ or $\le 4\text{--}6$ chunk blits).
   - Measure frame rendering time over 1000 simulated camera pan frames (target: avg FPS $\ge 30$, or frame time $\le 16.6\text{ ms}$).
   - Measure memory usage of active chunk canvases (target: $\le 8\text{ MB}$).
2. Formulate verification criteria for non-regression:
   - Ensure `client/webapp/js/engine/world_renderer.js` still renders Waypoints (safe radius ring, pulse animation), Map Device (6 portals, activation rune), and props.
   - Verify that all unit tests (`pytest tests/unit/`) continue to pass.
   - Verify that all 81 E2E tests (`pytest tests/e2e/test_poe2_map_system_e2e.py`) continue to pass.
   - Check code hygiene and line length limits ($\le 350$ lines soft cap, $\le 500$ hard cap).

Write your findings to: `c:\Projects\FreeExile\.agents\teamwork\explorer_m2_3\report.md`  
Write your standard `handoff.md` and send a message back to parent when complete.

## 2026-10-01T20:04:00Z
You are Performance Benchmark & Test Spec Explorer.
Your working directory is: c:\Projects\FreeExile\.agents\teamwork\explorer_m2_3
Your dispatch assignment is: c:\Projects\FreeExile\.agents\teamwork\explorer_m2_3\DISPATCH.md
MANDATORY: Read the authoritative user request at:
c:\Projects\FreeExile\.agents\teamwork\ORIGINAL_REQUEST.md (specifically section ## 2026-10-01T19:19:13Z - R2).
Also consult c:\Projects\FreeExile\GEMINI.md, c:\Projects\FreeExile\AGENTS.md, and c:\Projects\FreeExile\.agents\teamwork\orchestrator_11\PROJECT.md.

Investigate and design performance benchmark tooling and test verification spec for M2:
1. Design tools/perf/map_render_benchmark.js to benchmark TileMapRenderer (fps >= 30, draw calls <= 4-6 chunk blits, RAM <= 8 MB).
2. Formulate verification criteria for non-regression of Waypoints, Map Device, and props in world_renderer.js.
3. Verify test commands: pytest tests/unit/, pytest tests/e2e/test_poe2_map_system_e2e.py, python tools/lint/check_code_and_doc_hygiene.py --strict.

Write report.md and handoff.md in your working directory and notify parent when complete.
