Retrieved article excerpt
Open article · Retrieved 2026-11-26T22:22:40.129578+00:00
# PERF-GS
3D Gaussian Splatting in 10 seconds on an RTX 4090
Efficient, extensible, cross-vendor, dependency-free & low VRAM differentiable training
[Stefano Scolari](https://stefanoscolapasta.github.io/nozbufferallowed/about.html)/[SEED, Electronic Arts](https://seed.ea.com/)
[</> View code](https://github.com/electronicarts/perf-gs)[Quickstart](https://electronicarts.github.io/perf-gs/#quickstart)
[
](assets/project-page/stump-poster.webp)](assets/project-page/stump.mp4)
**Stump**Real-time demo · [Ultrafast · RTX 4090](https://electronicarts.github.io/perf-gs/assets/project-page/ultrafast-runs.json "Training records for the four Ultrafast videos")
[
](assets/project-page/bicycle-ultrafast.webp)](assets/project-page/bicycle-ultrafast.mp4)
[Bicycle](https://electronicarts.github.io/perf-gs/assets/reconstructions/bicycle-ultrafast.webp)Real-time demo · Ultrafast · RTX 4090
[
](assets/project-page/bonsai-ultrafast.webp)](assets/project-page/bonsai-ultrafast.mp4)
[Bonsai](https://electronicarts.github.io/perf-gs/assets/reconstructions/bonsai-ultrafast.webp)Real-time demo · Ultrafast · RTX 4090
[
](assets/project-page/garden-ultrafast.webp)](assets/project-page/garden-ultrafast.mp4)
[Garden](https://electronicarts.github.io/perf-gs/assets/project-page/garden-ultrafast.mp4)Real-time demo · Ultrafast · RTX 4090
Stump trains for **10.15 seconds** in this recording, followed by a free-camera orbit. From opening the scene to the trained result took 13.90 seconds.
Replay together[Reconstructions in motion](https://electronicarts.github.io/perf-gs/#motion)
## Nine-scene Mip-NeRF 360 averages
Ultrafast training loop
: 10.51 s
: RTX 4090 · 3,000 steps
Quality reconstruction
: 27.90 dB
: RTX 4090 · 22.68 s
Quality+ reconstruction
: 28.227 dB
: RTX 4090 · 122.66 s
## Overview
The goal was allowing hundreds of experiments in a day on a single consumer GPU. On our RTX 4090, Ultrafast preset runs the whole nine-scene Mip-NeRF 360 dataset in 94.6 seconds. Loading the photos, initializing the splats, scoring the held-out views and exporting the model take some minimal additional time.
Kitchen
A metal mixing bowl, onions and an oven mitt on the Kitchen counter.
Splats binned per tile
Tile counts range from blue at 0 to red at 9,731. The highest counts cluster near the back of the counter.
04,8669,731
Each square in the heatmap is one image tile. In this earlier Kitchen run, the busiest tiles had nearly 10,000 splats assigned to them. Every extra entry is another item to sort and another splat the renderer may visit when blending that tile.
Trainer design
### Trainer architecture
We use **[SlangPy](https://github.com/shader-slang/slangpy)** to write the training schedule in Python, the backend gpu dispatching using SlangPy and the kernels in Slang. Python picks a training camera, sets learning rates and decides when to grow the model (frontend training loop/setup), SlangPy compiles and caches each shader entry point for the session, then dispatches it through its Python RHI. There's no separate native extension to build.
Slang autodiffs the math for one splat/primitive, while we write the backward pass that accounts for how overlapping splats combine into a pixel. A *primitive* defines its projection, coverage and color. Mark its projection and coverage functions as differentiable, and Slang generates their derivatives from the same source. The *compositor* blends the contributions. The disk primitive in our tests uses the same blend loop with its own coverage function. [Primitive interfaces](https://github.com/electronicarts/perf-gs/blob/HEAD/shaders/core/interfaces.slang) · [Disk primitive test](https://github.com/electronicarts/perf-gs/blob/HEAD/tests/test_disk_primitive.py)
Vulkan is the cross-platform target, and D3D12 on Windows uses the same shader sources. Training has no CUDA or PyTorch dependency, but it is totally possible to interop with PyTorch and other frameworks. We've run Vulkan training on Windows with the Nvidia RTX 4050 Laptop GPU, RTX 4080, RTX 4090 and AMD Radeon RX 7900 XT. Linux and macOS are unverified, yet.
### Initialization
COLMAP gives us camera poses and the initial sparse point cloud. Its color initializes the constant spherical harmonic coefficient, its opacity starts at 0.1, and its initial scale comes from the root-mean-square distance to its three nearest neighbors. That lets a dense patch of points start with smaller splats than a sparse one.
We also seed geometry between those points. We take up to 28 anchor photos from the training split, rectify stereo pairs and match them in both directions. We then triangulate matches that agree left-to-right and right-to-left, then check where the 3D point lands in a third training photo. We keep it if the color agrees and this adds up to 256,000 splats in places the sparse reconstruction may barely have sampled, which helps speeding up initial convergence.
Taking inspiration from [PPISP](https://research.nvidia.com/labs/sil/projects/ppisp/), for a single-camera reconstruction we fit one radial falloff strength during setup and apply it when rendering. Otherwise the trainer uses a flat response. [Stereo initialization](https://github.com/electronicarts/perf-gs/blob/HEAD/src/trainer/data/stereo.py) · [Lens fit](https://github.com/electronicarts/perf-gs/blob/HEAD/src/trainer/data/lens_calibration.py)
### Forward passes
One ordinary step records the forward render, image loss, backward passes and Adam update in one GPU submission. After growth, we reorder splats along a Morton curve so nearby splats sit together in memory. At the start of a view the GPU can then cull an off-screen cluster of 128 splats with one bounding-box test.
The renderer projects each surviving Gaussian to an ellipse, counts the 8 × 8 pixel tiles it overlaps, and evaluates its view-dependent color if it touches the image. We bound the ellipse at the opacity cutoff, then walk the rows or columns of that box to find the tiles the ellipse crosses.
Tiles inside the bounding box
A blue rectangle encloses a slanted pink ellipse. The rectangle overlaps twelve yellow tiles.
Tiles touched by the ellipse
The same ellipse intersects eight yellow tiles. Four of the twelve tiles fall outside the ellipse.
The box covers 12 tiles. Testing the ellipse itself keeps eight, so this splat needs four fewer entries in the tile lists. Yellow marks the tiles that each method assigns. [Hanson et al., Speedy-Splat, Fig. 1b–c](https://speedysplat.github.io/).
We use Mip-Splatting here. The training cameras set a 3D smoothing scale for each splat, and a 2D filter widens small projected footprints while compensating their opacity.
A large splat can touch many tiles. Sorting a depth key for every copy would repeat a lot of work. We sort splats by depth **once per view**, emit the splat–tile pairs in that order, then do a stable GPU radix sort on just the tile ID. Each tile gets a front-to-back list. The blend skips alpha below 1/255 and stops a pixel once its remaining transmittance falls below 0.0001. The loss compares the render with the training photo using pixel error and SSIM. The SSIM shader filters each 11 × 11 neighborhood first along rows, then along columns. [Rasterizer](https://github.com/electronicarts/perf-gs/blob/HEAD/src/trainer/backend/render/rasterizer.py) · [SSIM shader](https://github.com/electronicarts/perf-gs/blob/HEAD/shaders/losses/ssim_loss.slang)
### Backward passes
Many pixels can see the same splat. If each pixel writes its own update, those writes compete for the same gradient in memory. Building on [TamingGS](https://arxiv.org/abs/2406.15643), we give each GPU lane one splat within a tile. The lane adds up that tile's pixel contributions in registers, then writes the total for its splat.
One lane per pixel
Four pixels each issue an atomic addition to the same splat gradient.
One lane per splat
One lane sums the same four pixel contributions in registers and issues one atomic addition.
Follow one gradient component for one splat in a tile. With four contributing pixels, local accumulation turns four writes to the same address into one.
Each splat's contribution depends on what the splats in front of it have already blended. Every 32 splats in a tile, the forward pass saves each active pixel's accumulated RGB and remaining transmittance. An indirect dispatch schedules the groups reached by at least one pixel. Within each group, lanes use the saved values and wave operations to reconstruct the blend in front of their splat.
From a talk I gave (slides available soon, hopefully)
Per-pixel writes · slide 64
[Nine pixel threads direct red atomic-add arrows toward the same gradient buffer.](https://electronicarts.github.io/perf-gs/assets/project-page/backward-pixel-writes.webp)
Per-splat accumulation · slide 66
[One lane handles each splat in depth order. Green arrows collect pixel contributions in registers and red arrows write to each splat's gradient buffer.](https://electronicarts.github.io/perf-gs/assets/project-page/backward-lane-registers.webp)
Depth groups within one tile · slide 80
[Colored boxes group a tile’s depth-sorted splats. A yellow outline highlights one group of 32.](https://electronicarts.github.io/perf-gs/assets/project-page/backward-depth-buckets.webp)
Each box holds up to 32 consecutive splats in the tile's depth order. The highlighted box is one backward job. A lane handles one splat in that group.
Once those contributions have been summed across tiles, a separate pass differentiates the projection once per contributing splat. Another pass handles spherical harmonic color and its dependence on view direction. Adam updates the parameters in 32-bit float (and we use int64 atomics for better cross-platform compatibility). Its two running moments are stored in bfloat16 with stochastic rounding, which halves the storage for those moments and lets small updates accumulate. [Blend backward](https://github.com/electronicarts/perf-gs/blob/HEAD/shaders/rasterize/tile_binned/backward_persplat.slang) · [Projection backward](https://github.com/electronicarts/perf-gs/blob/HEAD/shaders/rasterize/tile_binned/projection_backward.slang) · [Adam precision](https://github.com/electronicarts/perf-gs/blob/HEAD/shaders/common/adam_precision.slang)
### Densification
How small does a splat need to be to represent the detail in a photo? We use a modified version of [SAD-GS](https://vcai.mpi-inf.mpg.de/projects/SAD-GS/) to answer that question for each of the splat's three axes.
Local structure in the photo
Yellow ellipses trace the local scale and direction of detail in a photograph of a locomotive.
Structure-aware splitting
Two cameras see different projections of a Gaussian. The resulting children are narrower along the axis that needs more detail.
On the locomotive, the yellow ellipses pick out long edges along the body and finer detail around the wheels. Different cameras see a splat from different angles. Together those views tell us which axis needs to split. Illustration by [Lyu et al., SAD-GS](https://vcai.mpi-inf.mpg.de/projects/SAD-GS/).
During growth, every tenth step samples a structure tensor built from RGB gradients in the training photo to estimate the local image frequency. We project each of the splat's axes into that view and compare its length with the scale of the image detail. If the projected axis is longer than the estimated wavelength of that detail, the view votes to split that axis. We accumulate votes across cameras.
E