McRogueFace/tests/benchmarks
John McCardle 7d57ce2608 feat: Implement SpatialHash for O(1) entity spatial queries (closes #115)
Add SpatialHash class for efficient spatial queries on entities:
- New SpatialHash.h/cpp with bucket-based spatial hashing
- Grid.entities_in_radius(x, y, radius) method for O(k) queries
- Automatic spatial hash updates on entity add/remove/move

Benchmark results at 2,000 entities:
- Single query: 16.2× faster (0.044ms → 0.003ms)
- N×N visibility: 104.8× faster (74ms → 1ms)

This enables efficient range queries for AI, visibility, and
collision detection without scanning all entities.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 00:44:07 -05:00
..
baseline Tests for cached rendering performance 2025-11-28 23:28:13 -05:00
benchmark_moving_entities.py refactor: comprehensive test suite overhaul and demo system 2025-11-25 23:37:05 -05:00
benchmark_suite.py feat: Add dirty flag propagation to all UIDrawables and expand metrics API (#144, #104) 2025-11-28 15:44:09 -05:00
entity_scale_benchmark.py feat: Implement SpatialHash for O(1) entity spatial queries (closes #115) 2025-12-28 00:44:07 -05:00
layer_performance_test.py feat: Implement chunk-based Grid rendering for large grids (closes #123) 2025-11-28 22:33:16 -05:00
stress_test_suite.py Tests for cached rendering performance 2025-11-28 23:28:13 -05:00
tcod_fov_isolated.py fix: Remove O(n²) list-building from compute_fov() (closes #146) 2025-11-28 21:26:32 -05:00
tcod_scale_test.py Tests for cached rendering performance 2025-11-28 23:28:13 -05:00