Opening the page…

Elliot Bonneville

Rendering A Profile Banner On Four GPUs

Obsidian Silicon: Hopper Lattice. 5,492 hopper crystals (380 epitaxial), 260,780 fins.

I’m experimenting with generating a profile banner using my GPUs. So far that’s one session of eight and a half hours with Claude Code, which comes to about $115 of Fable 5.2 at API list prices and 24 cents of electricity. I’m on a subscription, so the $115 isn’t what I paid.

Nothing here comes from an image model. Each picture is either a Python script that builds a scene in Blender, with no models, textures or photographs brought in, and renders it with Cycles, or a frame from a fluid solver and light tracer written for this. Claude Code ran all of it, and I didn’t write a line of the code.

The rest of this post is how each picture was built and how long it took to render. There’s a thread on X with the short version.

The setup

  • -Four NVIDIA RTX PRO 6000 Blackwell Max-Q cards, 96 GB each.
  • -A Threadripper PRO 9985WX with 64 cores and 376 GiB of RAM.
  • -Blender 5.0.1 and Cycles, on the OptiX backend.
  • -Output at 3000 by 1000, plus a 1500 by 500 copy for upload.
  • -All of it driven from a MacBook Air over SSH.

The cards also serve a language model, which keeps about 90 GiB of each one, so everything except Crucible had to fit in the 6 to 7 GiB left over. A Cycles process takes 3.4 to 5.2 GiB per card whatever the scene, most of it for its path-state pool.

The pipeline

Scenes are generated in numpy and handed to Blender as Geometry Nodes instances, curves or point clouds, so a million objects cost very little memory. Every frame renders to a 32-bit linear EXR. The grade happens afterwards in numpy (auto exposure, bloom, halation, an AgX tone map, film grain, and a fade to black at the edges and under the avatar for X’s dark mode), so a look can be changed in a few seconds without touching the GPUs.

There are three qualities.

  • -Draft: 1500 by 500 at 160 samples per pixel. Four different jobs run at once, one per card, and a round takes 10 to 40 seconds.
  • -Hero: 3000 by 1000 at 1,024 samples per pixel, denoised, with all four cards on one frame. 18 to 90 seconds.
  • -Ultra: 3000 by 1000 at 4,096 samples per pixel. 20 seconds to 4 minutes.

An ultra frame runs as one Blender process per card. Each renders full-frame passes with its own seeds, and a last step averages them.

Cycles renders in RGB, so dispersion in the glass scenes is done by rendering the frame once per wavelength band, with the glass’s index of refraction set from Cauchy’s equation, and recombining the twelve bands through the CIE colour-matching functions. The sample budget is split across the bands, so it costs nothing extra.

Power, load, memory and temperature are sampled from nvidia-smi twice a second during every render and written beside the picture. That’s where the energy figures below come from.

The first set

Obsidian Silicon: Hopper Lattice. 5,492 hopper crystals (380 epitaxial), 260,780 fins.Obsidian Silicon: Hopper Lattice. 5,492 hopper crystals (380 epitaxial), 260,780 fins.

Plate I. Silicon as a crystal, as a draft and at 1,024 samples. The final is at the top of the post. Hopper crystals form when a crystal’s edges grow faster than its faces, which leaves a stepped funnel. Here 5,492 of them are built from 260,780 fins (instanced chamfered boxes) and packed largest first so they intergrow, with about 860,000 frost cubes on the rims: 1.1 million instances and 49 million triangles. The glow in the funnels is gold reflecting gold over 20 bounces, with no emitter. The final is 8,192 samples per pixel in 8 passes, denoised. 93 seconds on four cards, 23.6 Wh.

Nocturne Cymatics: Standing Wave. 4,000,000 grains on the nodal lines of modes (24,3)+(9,8).

Plate II. A Chladni figure: sand gathering on the lines where a ringing plate doesn’t move. Two pairs of degenerate plate modes are superposed and their mix drifts across the plate. Four million faceted grains are rejection-sampled onto the nodal lines, using the mode’s value divided by its slope as the distance to a line. 80 million triangles. 4,096 samples per pixel, no denoiser. 39 seconds on four cards, 10.0 Wh.

Fluted Spectra: Caustic Web. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,639,996-triangle hand-cast pane.Fluted Spectra: Smoked Rods. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,643,196-triangle hand-cast pane.

Plate III. Light through fluted glass. A fluted pane (3.6 million triangles) hangs out of frame between a small hard light and slate and throws a caustic web. In the second picture five smoked glass rods lie across the web and bend it again. The caustics are solved with Cycles’ manifold next-event estimation, and the colour fringes are the twelve wavelength bands at 341 samples per pixel each. These need about 6 GiB per card, so they ran on three: 120 and 157 seconds, 28.2 and 27.0 Wh.

Swarm Etching: Counterpoint. 100,800 hairlines + 319,200 hatch strokes (11,306,400 curve segments) + 1,600,000 dust spheres.

Plate IV. Two streams of agents in contrary motion. The agents are advected through an analytic curl-noise field with a shear layer, so the streams roll up into eddies where they meet. Their trails are drawn as 101,000 long hairlines and 319,000 short hatch strokes (11.3 million curve segments) over 1.6 million dust spheres. 4,096 samples per pixel, no denoiser. 227 seconds, 30.4 Wh. Curves are the slow primitive.

The second set: objects on a stage

Resonant Plates. 9 plates, each in its own mode, carrying 2,599,996 grains of sand.

Plate V. Nine bronze plates, each ringing in a different mode and carrying that mode’s figure in sand. 2.6 million grains, 52 million triangles. 4,096 samples per pixel, no denoiser. 32 seconds, 8.2 Wh.

Glass Monoliths. 7 reeded glass slabs (890,472 triangles), 12 wavelength bands, 32 transmission bounces; light thrown on the floor is approximated, not solved.

Plate VI. Seven reeded smoked-glass slabs in front of a lit backdrop (890,000 triangles), rendered in twelve wavelength bands with 32 transmission bounces. The flutes are too deep for the caustic solver to converge, so the light on the floor is an approximation: shadow rays see the glass as tinted and partly transparent. 27 seconds, 6.2 Wh.

Murmuration. 85,000 faceted darts in formation, each casting its own shadow.

Plate VII. A flock as a ribbon: 85,000 faceted brass darts, each an oriented instance casting its own shadow. 4,096 samples per pixel, no denoiser. 35 seconds, 8.5 Wh.

The third set: interiors

All six are 4,096 samples per pixel, denoised, on four cards.

Interconnect. 11 metal levels, 41,563 wire runs and 178,077 vias, lit from the device layer below through 24 bounces.

Plate VIII. The wiring above a chip’s transistors, with a pit cut down through 11 levels of it to a glowing device layer. 219,640 wire runs and vias (9.7 million triangles), lit mostly from below through 24 bounces. 28 seconds, 7.3 Wh.

Punched Light. 499 punched notes in a 10,597-piece bronze wall; every shaft is volumetric scattering.

Plate IX. A curved bronze wall punched like a piano roll with a five-voice fugue: 499 notes in a wall of 10,597 pieces. The shafts are volumetric scattering through dusty air, and the notes land in light on the floor. 44 seconds, 13.7 Wh.

Ringing Dish. a 12-fold Faraday lattice on a mirror of liquid metal (1,764,600 triangles), 46 beads in the air, 16 mirror bounces.

Plate X. Faraday waves: a twelve-fold standing lattice on a mirror of liquid metal (1.76 million triangles), with 46 beads thrown into the air. 16 mirror bounces. The surface is drawn entirely by two large emission cards it reflects. 23 seconds, 6.4 Wh.

Folio Canyon. 760 gatherings of paper in two walls (1,879,284 triangles), lit by 16 diffuse bounces off the paper.

Plate XI. A slot canyon whose walls are stacked paper: 760 gatherings in two walls (1.9 million triangles). One wall is sunlit and the rest is lit by 16 diffuse bounces off the pages. 20 seconds, 5.7 Wh.

Standing Waves. 34 strings in modes 1 to 34, drawn as 1,939 phase copies (763,657 curve segments).

Plate XII. The harmonic series: 34 strings sounding modes 1 to 34, each drawn as the spindle it sweeps out, which takes 1,939 phase copies (764,000 curve segments). 22 seconds, 6.3 Wh.

Sound Relief. a 2400x820 spectrogram milled in 30 terraces (3,929,562 triangles), summits gilded.

Plate XIII. A spectrogram as terrain: 2,400 by 820 bins milled into a bronze slab in 30 terraces (3.9 million triangles), with the summits gilded. The piece of music is synthetic. 21 seconds, 5.6 Wh.

Crucible: filling the memory

The finals above use about 4 GiB of each 96 GB card. Crucible was built to use all of it, with the language model taken down to make room. It’s the inside of a furnace pulling a silicon crystal out of the melt, under smoke.

  • -Smoke: a grid of 3636 by 2727 by 1091 voxels, 10.8 billion in all. 40.3 GiB as OpenVDB floats, and 674 seconds to generate.
  • -Geometry: 256 million unique triangles, with nothing instanced.
  • -GPU memory: 80.5 GiB per card.
  • -Host RAM: 244 GB at peak.
  • -A frame: 4,096 samples per pixel as 32 passes of about 12 seconds each, after two and a half minutes of loading.
Crucible. 10.82 billion voxels of smoke (40.3 GiB, full float), 256 million unique triangles, 12 volume bounces; nothing instanced.

Plate XIV. Crucible at full size: about 7 minutes a frame, 63.5 Wh.

Host RAM turned out to be the ceiling for geometry, because Cycles keeps a copy of the scene in RAM for each device. 256 million triangles peaked at 244 GB, and a version with 432 million reached 351 of the machine’s 376 GB and had to be killed.

The memory doesn’t show in the picture. The smoke is band-limited noise and the triangles are relief finer than a pixel, so the version at one-eighth the linear size (21 million voxels, 4 million triangles, 11 seconds on one card) is hard to tell from the full one.

Crucible. 0.02 billion voxels of smoke (0.1 GiB, full float), 4 million unique triangles, 12 volume bounces; nothing instanced.Crucible. 1.35 billion voxels of smoke (5.0 GiB, full float), 41 million unique triangles, 12 volume bounces; nothing instanced.

Plate XV. Crucible at one-eighth and at half linear size: 11 and 29 seconds, on one card each.

A fluid solver and a light tracer

The other pictures come from a second program with no Blender in it: Rust, with CUDA kernels compiled at start-up by NVRTC.

The solver is a D3Q19 lattice Boltzmann fluid on one GPU, with a single copy of the lattice streamed in place, regularised collision, a Smagorinsky subgrid model and bounce-back solids. The smoke is massless particles carried by the flow, which don’t blur the way a density grid does. A flow is 576 by 192 by 192 cells (21.2 million) and 60 million particles. It runs at 2.6 to 4.4 billion cell updates a second and takes 1.5 to 3 minutes, in about 2.4 GiB.

Three things were needed to keep it stable at very low viscosity: relaxing compression much faster than shear, a 16-cell strip of thicker fluid behind the inlet, and a fourth-difference filter on the velocity every eighth step.

The renderer splats the particles into a density grid at twice the fluid’s resolution, traces light forward from the lamp through it (200 million to 1.2 billion bundles), stores what scatters, and gathers it with a camera pass. A picture takes 20 seconds to 2.5 minutes on one card.

The first test: a small jet leaving a pipe.

Plate XVI. The first test: a small jet leaving a pipe. Three million particles, 0.7 seconds.

Jet, one thin sheet of light.Two streams, warm sheet inside, cool lamp behind.Five rods of different thickness, sheet from above.Jet, warm sheet plus a dim cool fill from behind.

Plate XVII. The three flows. A jet lit by one thin sheet of light. A fast stream over a slow one, lit by a sheet with a lamp behind. Lines of smoke past five rods of different thickness, sheet from above. The jet again, with a sheet and a dim fill from behind.

Jet from front-left and above, one warm beam from the side.Lamp behind, haze, low camera.

Plate XVIII. The same jet with a floor under it and the camera close and off-axis: a beam from the side, and a bare lamp behind the smoke with haze in the air.

Purple lamp behind, a gold lamp inside the jet. Low camera.Purple lamp behind, a gold lamp inside the jet, from front-left and above.Purple lamp behind, a gold sheet through the middle. Low camera.Purple lamp behind, gold light from the side. Low camera.

Plate XIX. The jet in a hazy room with a floor and a back wall. A purple lamp sits behind it, and the gold is a small lamp inside the jet (twice), a sheet through the middle, and a side light.

Times and cost

Leaving Crucible out, the fourteen finals took 14.8 minutes of rendering and 187 Wh between them. Most took 20 to 40 seconds, and the slowest, the curves, took 227.

The session used 1.2 million output tokens, more than half of them thinking, and reread 185 million tokens of its own context from cache. At Fable 5.2’s API list prices that is $47.92 of output, $36.91 of cache reads and $30.52 of cache writes, or $115.45 by Claude Code’s own count.

A chart of cumulative token cost over the session, rising steadily from nothing at ten past twelve to 115 dollars by half past eight in the evening, with marks under the axis where notes were sent.

Plate XX. Token cost over the session, with my notes marked along the bottom. The numbers mark when each set of pictures finished.

The electricity is what was metered for the renders still on disk: 1.31 kWh, or 24 cents at 18 cents a kilowatt-hour. Overwritten drafts and the solver’s runs weren’t metered. Four cards at their 300 W peak for the whole session would have been 10 kWh, which is under two dollars.

I haven’t picked one yet. I’m elliotbnvl on X.

The rest of the pictures are below, in the order they were made.

First pass: volcanic ridge.First pass: etched wafer.First pass: fractured strata.First pass: fluted basalt.

Plate XXI. From an earlier pass with a different agent, which isn’t in the figures above: volcanic ridge, etched wafer, fractured strata and fluted basalt, as drafts.

First pass: etched wafer.First pass: fractured strata.First pass: fluted basalt.First pass: volcanic ridge.

Plate XXII. From an earlier pass with a different agent, which isn’t in the figures above: etched wafer, fractured strata, fluted basalt and volcanic ridge at 256 samples per pixel.

Nocturne Cymatics: Figure. 1,400,000 grains on the nodal lines of modes (15,3)+(9,5).Nocturne Cymatics: Standing Wave. 1,400,000 grains on the nodal lines of modes (24,3)+(9,8).Nocturne Cymatics: Standing Wave. 2,800,000 grains on the nodal lines of modes (24,3)+(9,8).Nocturne Cymatics: Figure. 2,800,000 grains on the nodal lines of modes (15,3)+(9,5).

Plate XXIII. Nocturne Cymatics, top: draft, 8.5 seconds. Nocturne Cymatics, plate: draft, 7.7 seconds. Nocturne Cymatics, regular: draft, 17 seconds. Nocturne Cymatics, top regular: draft, 14 seconds.

Nocturne Cymatics: Standing Wave. 2,800,000 grains on the nodal lines of modes (24,3)+(9,8).Fluted Spectra: Braid. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics, 32 transmission bounces.Fluted Spectra: Strings. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics, 32 transmission bounces.Fluted Spectra: Caustic Web. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,639,996-triangle hand-cast pane.

Plate XXIV. Nocturne Cymatics, plate: at 1,024 samples, 18 seconds. Fluted Spectra, braid: draft, 24 seconds. Fluted Spectra, strings: draft, 26 seconds. Fluted Spectra, pane: draft, 22 seconds.

Fluted Spectra: Smoked Rods. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,642,556-triangle hand-cast pane.Fluted Spectra: Smoked Rods. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,642,556-triangle hand-cast pane.Fluted Spectra: Smoked Rods. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,643,196-triangle hand-cast pane.

Plate XXV. Fluted Spectra, rods b: draft, 32 seconds. Fluted Spectra, rods: draft, 6.7 seconds. Fluted Spectra, rods c: draft, 22 seconds.

Fluted Spectra: Caustic Web. 12 wavelength bands (Cauchy dispersion), MNEE refractive caustics through a 3,639,996-triangle hand-cast pane.Swarm Etching: Counterpoint. 100,800 hairlines + 319,200 hatch strokes (11,306,400 curve segments) + 1,600,000 dust spheres.Swarm Etching: Counterpoint. 100,800 hairlines + 319,200 hatch strokes (11,306,400 curve segments) + 1,600,000 dust spheres.

Plate XXVI. Fluted Spectra, pane: at 1,024 samples, 52 seconds. Swarm Etching, counterpoint: draft, 28 seconds. Swarm Etching, counterpoint: at 1,024 samples, 88 seconds.

Resonant Plates. 9 plates, each in its own mode, carrying 2,599,996 grains of sand.Glass Monoliths. 7 reeded glass slabs (890,472 triangles), 12 wavelength bands, 32 transmission bounces; light thrown on the floor is approximated, not solved.Murmuration. 85,000 faceted darts in formation, each casting its own shadow.

Plate XXVII. Resonant Plates, stand: draft, 14 seconds. Glass Monoliths, stones: draft, 9.2 seconds. Murmuration, ribbon: draft, 2.8 seconds.

Interconnect. 11 metal levels, 41,563 wire runs and 178,077 vias, lit from the device layer below through 24 bounces.Punched Light: Floor. 499 punched notes in a 10,597-piece bronze wall; every shaft is volumetric scattering.Punched Light. 499 punched notes in a 10,597-piece bronze wall; every shaft is volumetric scattering.

Plate XXVIII. Interconnect, pit: draft, 3.1 seconds. Punched Light, low: draft, 2.5 seconds. Punched Light, nave: draft, 2.5 seconds.

Ringing Dish. a 12-fold Faraday lattice on a mirror of liquid metal (1,764,600 triangles), 46 beads in the air, 16 mirror bounces.Folio Canyon. 760 gatherings of paper in two walls (1,879,284 triangles), lit by 16 diffuse bounces off the paper.Standing Waves. 52 strings in modes 1 to 52, drawn as 1,482 phase copies (512,622 curve segments).

Plate XXIX. Ringing Dish, twelvefold: draft, 1.6 seconds. Folio Canyon, slot: draft, 1.8 seconds. Standing Waves, frame: draft, 2.0 seconds.

Standing Waves: Square On. 34 strings in modes 1 to 34, drawn as 1,939 phase copies (763,657 curve segments).Standing Waves. 34 strings in modes 1 to 34, drawn as 1,939 phase copies (763,657 curve segments).Sound Relief. a 2400x820 spectrogram milled in 30 terraces (3,929,562 triangles), summits gilded.

Plate XXX. Standing Waves, square: draft, 2.6 seconds. Standing Waves, wall: draft, 1.4 seconds. Sound Relief, slab: draft, 1.8 seconds.

Crucible: Clear Air. 0.02 billion voxels of smoke (0.1 GiB, full float), 4 million unique triangles, 12 volume bounces; nothing instanced.Crucible: Thick Smoke. 0.02 billion voxels of smoke (0.1 GiB, full float), 4 million unique triangles, 12 volume bounces; nothing instanced.Crucible. 0.17 billion voxels of smoke (0.6 GiB, full float), 16 million unique triangles, 12 volume bounces; nothing instanced.

Plate XXXI. Crucible, clear: draft, 9.5 seconds. Crucible, thick: draft, 13 seconds. Crucible, q25: draft, 294 seconds.

Crucible: Clear Air. 1.35 billion voxels of smoke (5.0 GiB, full float), 41 million unique triangles, 12 volume bounces; nothing instanced.Crucible: Thick Smoke. 1.35 billion voxels of smoke (5.0 GiB, full float), 41 million unique triangles, 12 volume bounces; nothing instanced.Crucible. 10.82 billion voxels of smoke (40.3 GiB, full float), 198 million unique triangles, 12 volume bounces; nothing instanced.

Plate XXXII. Crucible, half clear: draft, 26 seconds. Crucible, half thick: draft, 32 seconds. Crucible, test: a test at full size, 128 seconds.

A fast stream over a slow one, sheet alone.Five rods, flood light.Jet, flood light through coarse slits.Two streams, flood light on the wall.

Plate XXXIII. A fast stream over a slow one, sheet alone (20 seconds). Five rods, flood light (33 seconds). Jet, flood light through coarse slits (34 seconds). Two streams, flood light on the wall (34 seconds).

Jet, lit straight through from behind.Jet, light refracted by the smoke onto a wall.Two streams, light refracted by the smoke onto a wall.Two streams, lamp behind, clear air.

Plate XXXIV. Jet, lit straight through from behind (37 seconds). Jet, light refracted by the smoke onto a wall (150 seconds). Two streams, light refracted by the smoke onto a wall (158 seconds). Two streams, lamp behind, clear air (22 seconds).

Five rods, lamp behind, clear air.Jet, bare lamp behind, clear air.Jet, light refracted onto a wall, second version.Jet, flood light through fine slits.

Plate XXXV. Five rods, lamp behind, clear air (23 seconds). Jet, bare lamp behind, clear air (22 seconds). Jet, light refracted onto a wall, second version (54 seconds). Jet, flood light through fine slits (54 seconds).

Five rods, light refracted onto a wall.Jet, sheet plus a strong fill from behind.Two streams, light refracted onto a wall, second version.Five rods, sheet from the side.

Plate XXXVI. Five rods, light refracted onto a wall (72 seconds). Jet, sheet plus a strong fill from behind (81 seconds). Two streams, light refracted onto a wall, second version (112 seconds). Five rods, sheet from the side (122 seconds).

Jet, lamp behind, haze in the air.Two streams, lamp behind, haze.Five rods, lamp behind, haze.Jet, light from above through haze.

Plate XXXVII. Jet, lamp behind, haze in the air (19 seconds). Two streams, lamp behind, haze (19 seconds). Five rods, lamp behind, haze (21 seconds). Jet, light from above through haze (38 seconds).

Jet, low camera.Jet, camera looking down on it.Jet from front-left and above.Jet from low down, one warm beam from the side.

Plate XXXVIII. Jet, low camera (30 seconds). Jet, camera looking down on it (32 seconds). Jet from front-left and above (32 seconds). Jet from low down, one warm beam from the side (54 seconds).

Cool beam from the side, amber sheet through the middle.Lamp behind, clear air, from front-left and above.Lamp behind, haze, camera in front and slightly above.Lamp behind, haze, from front-left and above.

Plate XXXIX. Cool beam from the side, amber sheet through the middle (95 seconds). Lamp behind, clear air, from front-left and above (38 seconds). Lamp behind, haze, camera in front and slightly above (57 seconds). Lamp behind, haze, from front-left and above (58 seconds).

Two lamps behind the smoke, purple and gold. Square-on.Two lamps, camera off to one side and above.Gold lamp behind, purple sheet.Purple lamp behind, gold sheet through the middle. Square-on.

Plate XL. Two lamps behind the smoke, purple and gold. Square-on (48 seconds). Two lamps, camera off to one side and above (53 seconds). Gold lamp behind, purple sheet (96 seconds). Purple lamp behind, gold sheet through the middle. Square-on (95 seconds).

A check frame.In a room with a floor and back wall: purple lamp alone, low camera.Purple lamp alone, from front-left and above.

Plate XLI. A check frame (3.9 seconds). In a room with a floor and back wall: purple lamp alone, low camera (72 seconds). Purple lamp alone, from front-left and above (72 seconds).

Purple lamp behind, gold as a broad side light. Low camera.Purple lamp behind, gold as a broad side light, from front-left and above.Purple lamp behind, gold as a broad side light, from the front.

Plate XLII. Purple lamp behind, gold as a broad side light. Low camera (93 seconds). Purple lamp behind, gold as a broad side light, from front-left and above (93 seconds). Purple lamp behind, gold as a broad side light, from the front (96 seconds).