Drapelab solver test

The same blanket, solved by Drapelab's solver on one CPU core, as it runs today, by the same solver spread over several CPU cores, and by a WebGPU port of it on your graphics card. Auto times them on this machine, with self-collision on, and picks the fastest. Watch any of them live, then run the comparison.

Starting 0 particles - ms per frame - of real time - crossings

Speed comparison

Each detail level runs on one CPU core, then on several cores (trying a few thread counts), then on the GPU, each with and without self-collision (the Crumple scene), at 10 substeps per frame. A few minutes; the view pauses meanwhile.

Milliseconds per frame; red: what Auto picks. Multi-core: the fastest thread count, in brackets. Self-collision: the Crumple scene, piled up

Detail1 coreMulti-coreGPU
cloth+ self-coll.cloth+ self-coll.
CPU, one coreCPU, several coresSeveral cores with self-collisionGPUGPU with self-collisionDashed line: 16.7 ms, the 60 fps budget

What all three solve

Drapelab v5.1's cloth core: gravity and air damping, stretch, bending (every other substep, as in Drapelab), the floor, the block, friction and internal damping. Fleece blanket, 200 × 230 cm, 10 substeps per frame. Multi-core and the GPU solve each pass in batches that share no particle, so their drape matches one core's closely but not to the last digit.

Self-collision

The GPU and multi-core share one method: every particle is kept at least 8.7 mm off the cloth's own faces, on the side it came from. Contacts are found again every two substeps and solved in four passes each substep; a contact closing fast is caught before it closes, and a particle that still goes through is put back where the substep found it. Crossings counts cloth edges passing through the cloth's own faces; 0 is clean. One core has none here, so Fold and Crumple cross on it.

Reading the numbers

Auto times the GPU and multi-core with self-collision on, at the detail you pick, and runs on the faster; a software GPU or one core only when neither runs. Multi-core shows its best thread count, and needs the hosted copy of this page. The copied results add contacts and crossings for both, and the GPU with the positions brought back every frame. Paste them in the thread.