projects

Aimalytics

closed alpha
  • Zig
  • raylib
  • OpenGL
  • Python
  • Deterministic simulation
  • Psychometrics

An aim benchmark built as a measurement instrument, not another aim trainer. Every run is a bit-exact replay, analysed offline to tell whether your technique is improving even when your score isn't.

Aim trainers are good at telling you your score, and bad at telling you why it moved. Scores swing with sleep, warm-up and luck, so even if you practise every day it's hard to know whether your technique is getting better. Aimalytics is my attempt to answer that properly. It's meant to run beside the trainer you already use, not to replace it.

Record once, analyse forever

Everything is built around one property: the game is fully deterministic. Given the same seed and the same mouse input, the simulation produces exactly the same run, bit for bit, every time it's replayed.

  • The simulation runs at a fixed 1,024 ticks per second, independent of the frame rate and the monitor.
  • All simulation maths is fixed-point (Q32.32), so results don't depend on the CPU, the compiler mode or the platform.
  • Randomness (target spawns, bot movement) comes from a seeded, counter-based generator (Philox4x32-10).
  • Every tick's world state is hashed into a chain that's stored with the run, so any replay can prove it matches the original.

That makes recordings tiny. A tape holds only the seed and the inputs (plus the raw mouse packets and frame timing), not video or snapshots. Nothing is analysed while you play, so measuring never costs a frame. The heavy work happens afterwards, offline, and old tapes can be re-analysed whenever the analysis gets better.

Determinism is tested, not assumed: every build replays a set of reference tapes in Debug, ReleaseSafe and ReleaseFast, and on a 32-bit target, and fails if a single state hash differs.

A session

You set your sensitivity once and pick a scenario: static and dynamic clicking, tracking or target switching.

The scenario list, with best and typical scores and the last runs of the selected scenario

Each run lasts 60 seconds. Mouse input is read raw on its own thread and written into the tape tick by tick. Afterwards you get your result next to your typical run, and a chart of recent runs.

The result of a run: the score against the typical run, and the runs before it

Every measure keeps its own trend over time.

Trends for one scenario: each measure with its recent history

And every run can be replayed exactly, watched or rendered to video.

Measuring honestly

From each replay, a Python pipeline reconstructs the aim path in real units (angular speed, acceleration, jerk), splits every target engagement into the main flick and the corrections after it, and measures where shots land, how often the first shot hits, and how long each flick takes.

Before any of those numbers is allowed to say "real change", its test-retest noise is measured across separate sittings. Until then it says "could be noise", or "not measured yet". Measures are validated against synthetic data with known answers, and experiments are pre-registered, so the analysis is fixed before the data is read. There is deliberately no single "technique score".

Under the hood

  • A Zig desktop app (about 36k lines, not counting the engine) on Raylib and OpenGL 3.3, reading raw mouse input through Windows Raw Input and Linux evdev.
  • Basalt, my own engine, extracted from Aimalytics: fixed-point maths, an archetype ECS, Philox RNG, ray casting, a TOML parser, a retained-mode UI toolkit, synthesized sound and HRTF spatial audio. Its core has no I/O, threads or globals, and the build only lets each module import what its layer allows, so the simulation can't touch the renderer or the OS.
  • A one-way data flow: the engine writes tapes and everything else reads them. A small C-ABI library lets Python open and replay tapes directly for research, with NumPy, SciPy, Polars and Marimo.

Status

Closed alpha. The app runs on Windows, and a handful of testers have played time-limited builds. Next comes a closed beta with the core measures running inside the app, then a public beta.

all projects