Idea · Sep 30, 2026
Orbit Crowd Lab
Students render hundreds of thousands of real asteroids orbiting the Sun in the browser, starting from a naive per-object loop and working up through typed arrays, instancing, and a GPU shader, measuring frame time at each step.
What it would do
A recent Show HN rendered 526k asteroids and every tracked satellite in real time, which is a perfect performance-engineering assignment hiding inside a pretty demo. Students download a slice of the public Minor Planet Center orbital elements (MPCORB) and implement Kepler's equation to propagate each body's position from its orbital elements. Stage 1 is a naive version (one object and one draw call per asteroid) that collapses at a few thousand bodies; Stage 2 moves elements into Float32Arrays and uses a single instanced draw; Stage 3 moves the Kepler solve itself into a vertex shader (or WebGPU compute shader) so the CPU only sends time. At each stage students record frame time versus body count in a built-in profiler panel and write a short report explaining where the bottleneck moved. Stretch goals: time scrubbing, color by orbit family, and picking a single asteroid to show its name and orbit.
Key features
- Real orbital data from the Minor Planet Center, parsed into typed arrays
- Kepler's equation solver (Newton iteration) implemented on CPU, then ported to a shader
- Three required performance stages with a built-in frame-time vs. body-count chart
- Autograder checks positions against reference values for a set of named asteroids at fixed dates
- Report template asking students to explain each bottleneck shift with their own measurements