## Question
How does the Virtual Guns system track and compare gun performance? What metric, what detection method, when to switch, and how does cold start work?
Parent map: https://git.fossellini.top/SirStone/SirRoboGarage/issues/74
Rolling window hit rate, wave-based detection, always-fire-best.
Metric: Rolling window hit rate over last N=100 virtual shots. Forgets stale data, adapts to opponent strategy changes.
Detection: Wave-based — track expanding circle at bullet speed, check if enemy crosses at predicted angle. O(1) per tick per wave.
Switching: Always fire whichever virtual gun has the highest rolling hit rate. No threshold logic.
Active gun runs as a virtual gun too — it competes on equal footing with all others. Loaded champion starts in the active slot but earns its place through hit rate like everyone else.
Cold start: On true first encounter (no weights), gun is silent until GA produces first champion. On rematch, loaded weights fire from tick 1.
No separate real-bullet accuracy tracking. One unified system.
## Resolution
**Rolling window hit rate, wave-based detection, always-fire-best.**
- **Metric:** Rolling window hit rate over last N=100 virtual shots. Forgets stale data, adapts to opponent strategy changes.
- **Detection:** Wave-based — track expanding circle at bullet speed, check if enemy crosses at predicted angle. O(1) per tick per wave.
- **Switching:** Always fire whichever virtual gun has the highest rolling hit rate. No threshold logic.
- **Active gun runs as a virtual gun too** — it competes on equal footing with all others. Loaded champion starts in the active slot but earns its place through hit rate like everyone else.
- **Cold start:** On true first encounter (no weights), gun is silent until GA produces first champion. On rematch, loaded weights fire from tick 1.
No separate real-bullet accuracy tracking. One unified system.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Question
How does the Virtual Guns system track and compare gun performance? What metric, what detection method, when to switch, and how does cold start work?
Parent map: #74
Resolution
Rolling window hit rate, wave-based detection, always-fire-best.
No separate real-bullet accuracy tracking. One unified system.