Compute-Shader Atomic Fixed-Point Sub-Pixel Point Rasterization
Bypasses hardware primitive rasterization by projecting points or sub-pixel particles in a compute shader and writing depth-tested colors or fixed-point additive radiance directly into a screen-sized storage buffer using GPU atomics.
Also known as compute point rasterization, atomic software point splatting, fixed-point compute point accumulation
In the family Performance, LOD & compression, software rasterization
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | Points renders via hardware point sprites; no built-in atomic fixed-point compute point rasterizer. |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | No built-in atomic fixed-point compute point-cloud rasterizer; requires custom compute shaders. |
| Unreal 5.7 | None found | |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Hardware graphics pipelines are optimized for multi-pixel triangles; feeding them millions of single-pixel points or sub-pixel dust particles wastes 2×2 pixel-quad shader lanes and bottlenecks fixed-function primitive assembly. Compute-shader software point rasterization sidesteps the raster pipeline altogether by running one compute thread per point.
Each thread transforms its point into clip space, frustum-culls it, and computes the integer pixel coordinate (x, y) in a flat screen-sized uint32 or uint64 storage buffer. Two atomic accumulation variants serve different visual regimes:
- Opaque point clouds: pack quantized depth in the upper bits and color or point ID in the lower bits of a 64-bit integer (or use early depth-buffer rejection followed by
atomicMinon depth), resolving the nearest point per pixel up to an order of magnitude faster thanGL_POINTS. - Additive / translucent micro-particles: test against the scene depth buffer, convert linear RGB radiance to fixed-point unsigned integers (e.g., 16 fractional bits per channel to preserve dim colors), and accumulate via
atomicAddinto RGB storage channels, yielding deterministic, order-independent energy conservation.
A fullscreen resolve pass unpacks the storage buffer into the final HDR framebuffer and clears it for the next frame.
When to choose it
Reach for it when
- drawing millions of tiny 1-pixel points or particles bottlenecks hardware rasterizer
- avoid 2x2 pixel quad overshading waste on dense lidar or spore point clouds
- software rasterize sub-pixel points in compute with lock-free depth testing
- pack depth and color into 64-bit atomics for fast compute point visibility
- composite massive compute-driven particle fields cleanly against scene depth
Choose it when rendering millions of lidar points, dense particle clouds, or tiny single-pixel spores/sparks where hardware quad-overshading and primitive setup dominate frame time.
Prefer GPU particle systems using instanced billboard quads whenever particles grow larger than a few pixels or require textured soft sprites and depth-of-field bokeh. Prefer Nanite virtualized geometry for dense connected triangle surfaces. Prefer Chaotic attractor density rendering specifically for iterative strange-attractor histogram accumulation.
Field marks
- Severe atomic contention stalls when millions of points project onto the exact same pixel (e.g., distant dense clusters without LOD or Morton ordering)
- Fixed-point 32-bit additive accumulators can overflow and wrap around if extreme particle densities stack without clamping or rescaling
- Points larger than 1–2 pixels lose efficiency rapidly compared to hardware triangle rasterization and appear as sparse pinholes up close
- 64-bit integer atomics are unavailable in core WebGPU WGSL, requiring split 32-bit depth/color passes or additive fixed-point RGB channels
Presets
Atomic Fixed-Point Compute Point Rasterization — hardware 2x2 quad overdraw waste (left) vs sub-pixel fixed-point atomic radiance cloud (right)
{
"P_DENSITY": 1,
"P_EXPOSURE": 1.15,
"P_SPIN": 0.55,
"P_SPLIT": 0.48
}Show GLSL (97 lines)
const float P_DENSITY = 1.00; // P Point Density [0.4, 1.6, 0.05]
const float P_EXPOSURE = 1.15; // P Additive Radiance [0.4, 2.2, 0.05]
const float P_SPIN = 0.55; // P Orbit Speed [0.0, 1.8, 0.05]
const float P_SPLIT = 0.48; // P 2x2 Quad / Atomic [0.0, 1.0, 0.02]
vec2 rot2(vec2 p, float a) {
float c = cos(a);
float s = sin(a);
return vec2(c * p.x - s * p.y, s * p.x + c * p.y);
}
vec3 aces(vec3 x) {
x = max(x, 0.0);
return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
float screenX = fragCoord.x / max(iResolution.x, 1.0);
float split = clamp(P_SPLIT, 0.0, 1.0);
float dens = clamp(P_DENSITY, 0.35, 1.8);
float expo = clamp(P_EXPOSURE, 0.3, 2.5);
float t = iTime * max(P_SPIN, 0.0);
vec3 bg = mix(vec3(0.02, 0.03, 0.06), vec3(0.06, 0.09, 0.16), smoothstep(-0.5, 0.5, uv.y));
// Subtle screen-space compute tile grid (8x8 workgroup overlay on right, 2x2 pixel-quad grid on left)
float quadGrid = step(0.86, max(fract(fragCoord.x * 0.125), fract(fragCoord.y * 0.125)));
vec3 col = bg + vec3(0.04, 0.07, 0.12) * quadGrid * 0.45;
// Project 120 3D points along a rotating trefoil torus-knot particle stream
vec3 atomicAcc = vec3(0.0);
float quadHits = 0.0;
float zNearest = 10.0;
vec3 nearestCol = vec3(0.0);
// Quantized 2x2 hardware quad cell for left side overdraw-waste demonstration
vec2 quadUv = (floor(fragCoord / 4.0) * 4.0 + 2.0 - 0.5 * iResolution.xy) / iResolution.y;
for (int i = 0; i < 120; i++) {
float fi = float(i);
float u = (fi / 120.0) * 6.2831853;
float rMaj = 0.34 + 0.13 * cos(3.0 * u + t * 0.4);
vec3 p3 = vec3(
rMaj * cos(2.0 * u),
0.16 * sin(3.0 * u) + 0.07 * sin(fi * 7.3),
rMaj * sin(2.0 * u)
);
// Add radial sub-pixel dust halo offset
p3 += vec3(cos(fi * 19.7), sin(fi * 13.1), cos(fi * 29.3)) * 0.055;
p3.xz = rot2(p3.xz, t * 0.65);
p3.yz = rot2(p3.yz, 0.42 + 0.15 * sin(t * 0.5));
float zCam = 1.65 - p3.z;
vec2 proj = p3.xy / max(zCam * 0.72, 0.25);
vec3 ptCol = mix(vec3(0.16, 0.78, 1.0), vec3(1.0, 0.52, 0.18), 0.5 + 0.5 * sin(u * 2.0 + p3.y * 4.0));
ptCol *= 0.8 + 0.4 * exp(-max(zCam - 1.0, 0.0));
if (screenX < split) {
// Left: Hardware rasterizer forces 2x2 pixel-quad invocations even for 1px points -> overdraw heatmap!
vec2 dq = abs(quadUv - proj);
if (max(dq.x, dq.y) < 0.022 * dens) {
quadHits += 1.0;
if (zCam < zNearest) {
zNearest = zCam;
nearestCol = ptCol;
}
}
} else {
// Right: Compute-shader atomic fixed-point additive radiance + depth-packed crisp sub-pixel splat
float d = length(uv - proj);
float core = exp(-(d * d) / max(0.00016 * dens * dens, 1e-6));
float halo = exp(-(d * d) / max(0.0014 * dens * dens, 1e-5)) * 0.22;
// Simulate fixed-point 16-bit integer atomicAdd quantization steps subtly
vec3 contrib = ptCol * (core + halo) * expo;
atomicAcc += floor(contrib * 64.0 + 0.5) / 64.0;
}
}
if (screenX < split) {
// Visualize wasted 2x2 helper-lane quad coverage (amber/magenta heat for overlapping quads)
if (quadHits > 0.5) {
float heat = clamp(quadHits / 6.0, 0.0, 1.0);
vec3 overdrawCol = mix(vec3(0.20, 0.55, 0.95), vec3(1.0, 0.24, 0.36), heat);
// Show active pixel (1 of 4) vs 3 wasted helper lanes inside each 2x2 quad
vec2 subQ = mod(floor(fragCoord / 2.0), 2.0);
float helperLane = step(0.5, subQ.x + subQ.y);
col = mix(nearestCol * 1.15, overdrawCol * 0.55, helperLane * 0.72);
}
} else {
col += atomicAcc * 0.65;
}
float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
col = mix(col, vec3(0.95, 0.98, 1.0), sep);
fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Attribution: MIT — written for this index.
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| atomic-fixed-point-compute-point-rasterization-live | Tesla T4 1920x1080 | 145× baseline (extreme) · 4.78 ms / 4.84 ms | opengl-timer-query · 32 frames · GPU Weight Atlas · Colab T4 sweep |
| atomic-fixed-point-compute-point-rasterization-live | NVIDIA L4 1920x1080 | 153× baseline (extreme) · 2.44 ms / 2.50 ms · 2.0× faster on L4 | opengl-timer-query · Cross-architecture validation |
| atomic-fixed-point-compute-point-rasterization-live | NVIDIA A100-SXM4-40GB 1920x1080 | 109× baseline (extreme) · 3.13 ms / 3.14 ms · 1.5× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): cited by Hierarchical Binary-Tree 3DGS LOD & Paged Streaming, StopThePop (Sorted Gaussian Splatting).
Crosses
- Meshlet foliage with compute-rasterized atomic spores: A split-path renderer for dense botanical worlds: macroscopic trunks and leaves flow through GPU-driven meshlets, while millions of sub-pixel drifting spores, pollen grains, and distant needle points bypass hardware triangle setup altogether via lock-free 64-bit compute atomics occluded against the meshlet depth buffer.
- GPU particle systems: Renders GPU-simulated micro-particles directly from storage buffers with order-independent fixed-point atomic radiance accumulation.
- Scatter-as-gather bokeh depth of field: Splits in-focus sub-pixel particles onto the fast atomic compute path while sending larger defocused bokeh sprites to normal rasterization.
Sources
- primaryMarkus Schütz, Bernhard Kerbl, Michael Wimmer (2021). Rendering Point Clouds with Compute Shaders and Vertex Order Optimization. Computer Graphics Forum.Verified via crossref · 2026-11-30doi:10.1111/cgf.14345
- primaryMarkus Schütz, Bernhard Kerbl, Michael Wimmer (2022). Software Rasterization of 2 Billion Points in Real Time. Proceedings of the ACM on Computer Graphics and Interactive Techniques.Verified via crossref · 2026-11-30doi:10.1145/3543863
- implementationm-schuetz (2019). m-schuetz/compute_rasterizer. Rendering Point Clouds with Compute ShadersGitHub API · license NOASSERTION · 2026-11-30
- implementationmrdoob (2026). mrdoob/codevember-2026. Daily creative agentic coding experiments for November 2026.GitHub API · license MIT · 2026-11-30