Lab
The pages we use while we build FORCE. Most of them are not demos: they measure something, such as how long it takes to start a job on the GPU, or check that the GPU gives the same result as the same algorithm written in JavaScript. They print numbers rather than draw. Each one belongs to a chapter of the logbook, where those numbers are told and explained. They stay online as they were, so anyone can run them again on their own device.
They run in a browser with WebGPU support.
Measurements and tests
- hello-compute: one compute shader, nothing else · logbook 000
- falling-particles: the first world, printed as numbers and checked against JavaScript · logbook 008
- pipeline-creation: creating a pipeline now or waiting for it, timed · guide ↗
- depth-promise: may a shader promise its depth is only farther than its triangle? Asked to this browser · logbook 046
- spring-lookup: two ways for a spring to find its particles when they change rows, and two ways to solve it, timed · logbook 059, 061
- compile-probe: one check of a shader written eight ways, to see which ones a browser's compiler takes · chapter 068
- dispatch-cost: what one more dispatch costs, timed · logbook 020, 022
- round-trip: a trip from the GPU to JavaScript, timed · logbook 021, 022
- turn-sorting: sorting contacts into turns in JavaScript, timed · logbook 023
- contact-cost: finding and pushing apart the particles that touch, on the GPU, timed · logbook 030
- bench: the benchmark to run on your own device, a computer or a phone, and to send us · logbook 043
- cells-study: charts of how the ways to find neighbouring particles change with the particles, the world and the hash · logbook 042
Demos
The pages that draw, also listed on the home page.