Reference
Performance
The measured GPU cost of each TileBreak method and feature over plain sampling.
Measured in this project (tilebreak_perf.json): Apple M5 (10 cores, 32 GB), macOS 27.0.1, Unreal Engine 5.8, Metal SM6 (UnrealEditor -game, uncooked), 1920 x 1080 (r.setres 1920x1080w, screen percentage 100, TSR). View: the shipped L_Benchmark ground (60 m, Nanite) fills the whole view from the benchmark camera (1.7 m high, 30° down, FOV 70); every row is the same ground with a runtime instance of the material named. Method: CSV profiler, 150-frame captures, 3 captures per row in alternating order after a warm-up pass, median; all other Unreal editors closed during the run. Added
cost = the arm minus a plain material on the same ground in the same view (3 texture samples, world-aligned, no
TileBreak).
| Material on the 60 m ground (Nanite) | GPU base pass | Added vs plain |
|---|---|---|
| Plain material: 3 TextureSample nodes, world-aligned (the baseline) | 1.84 ms | baseline |
| TileBreak master, Method 0 Off | 2.13 ms | +0.28 ms |
| Dithered (1 tap) | 2.52 ms | +0.67 ms |
| Cell | 3.04 ms | +1.19 ms |
| Hex (3 taps) | 2.85 ms | +1.01 ms |
| Aligned: the Bricks, Blocks and Pavers presets as shipped (measured on Bricks with its joint table and baked layout, macro off: the layout is read, not searched; its textures are the Bricks set while the baseline samples SandyGravel, so part of this figure is the texture, not the method) | 3.61 ms | +1.77 ms |
| Hex + Flatten | 2.87 ms | +1.03 ms |
| Hex + Distance | 2.86 ms | +1.01 ms |
| Hex + Macro | 3.07 ms | +1.22 ms |
| SandyGravel preset as shipped, the Fast setting: Hex + Flatten + Distance | 2.89 ms | +1.04 ms |
| The Quality setting: the preset + UseMacro 1 | 3.11 ms | +1.26 ms |
| Preset + UseFarFallback at its defaults (50-80 m; little of this view is that far) | 2.91 ms | +1.06 ms |
| Preset + UseFarFallback from 5 to 15 m (most of the view inside the switch band) | 3.02 ms | +1.18 ms |
| Preset + UseFarFallback from 0 to 1 m (the whole view past the switch: every pixel on 1 tap) | 2.57 ms | +0.73 ms |
| Preset + UseVertexPaint on an unpainted mesh (the mask's own cost) | 2.97 ms | +1.13 ms |
| Unreal's TextureVariation node (M_TileBreak_Example_TextureVariation) | 1.93 ms | +0.09 ms |
| Other surfaces | Pass | GPU | Added |
|---|---|---|---|
| Non-Nanite 60 m plane, plain material | Basepass | 0.67 ms | baseline |
| Non-Nanite 60 m plane, SandyGravel preset | Basepass | 1.05 ms | +0.38 ms |
| Decal over half the screen, Enable 0 (plain) | CompositionBeforeBasePass | 0.25 ms | baseline |
| Decal over half the screen, TileBreak (Gravel decal; timed with the previous Gravel scan, same 2048 x 2048 texture format) | CompositionBeforeBasePass | 0.46 ms | +0.20 ms |
| Landscape, 1 painted layer in view: GlobalEnable 0 / TileBreak | Basepass+NaniteBasePass | 1.45 / 2.69 ms | +1.25 ms |
| Landscape, 2-3 painted layers in view: GlobalEnable 0 / TileBreak | Basepass+NaniteBasePass | 1.41 / 3.26 ms | +1.85 ms |
Version 1.0.1 (the scratch-memory fix, Support and changelog) was timed against 1.0.0 in one run on the same Mac, both shaders side by side with the arms alternating (tilebreak_perf_v101ab.json). On the Nanite ground every method, Aligned included, costs the same within that run's noise (the default preset +1.16 ms vs +1.15, Hex +1.11 vs +1.10, Cell +1.34 vs +1.31, Dithered +0.75 vs +0.76; capture spread up to 0.64 ms; Aligned 8 % lower, +1.93 vs +2.11 ms, also inside it). On a non-Nanite mesh the default preset costs the same (+0.39 vs +0.39 ms) and Aligned is 33 % faster (+0.68 vs +1.02 ms). The table above is the 1.0.0 measurement.
The decal rows use the GPU/CompositionBeforeBasePass column (Metal has no decal stat of its own: the DBuffer decal pass is timed there, 0 with the decal hidden); the decal box covers the left half of the view. The landscape rows compare TileBreak with GlobalEnable 0 in the same view of L_Demo (the same material with plain sampling), 15 m above the ground, 60° down; they add the non-Nanite and Nanite base passes, because the landscape draws in one or the other depending on the view. Ranges of the three captures per row and every raw CSV are in tilebreak_perf.json.

Where the cost goes. The "before" figures come from two test runs in the same view on the same hardware, made while
cutting the cost (tilebreak_perf_ff.json, tilebreak_perf_c.json); every figure is measured against the plain baseline
of its own run. The lattice warp and the macro variation used gradient noise, which costs four hashes and a sine and cosine per
noise sample. The shipped shader uses value noise instead: one hash per corner gives every channel, with no trigonometry,
and its strength is matched to the old noise. The reference implementation found the same repetition, sharpness and
contrast on all 12 presets with either noise, and Measured quality measures the shipped shader. Fixing the method at compile
time saved only 0.29 ms, so the master keeps one shader with runtime method switches.
| Same SandyGravel ground, same view | Before the cost cut (gradient noise) | Shipped (value noise, table above) |
|---|---|---|
| Hex + Flatten + Distance + Macro (the Quality setting) | +2.80 ms | +1.26 ms |
| Hex + Flatten + Distance (the Fast setting, the presets) | +1.40 ms (Hex + Distance) | +1.04 ms |
| Hex alone | +1.39 ms | +1.01 ms |
| Dithered alone | +1.07 ms | +0.67 ms |
Hex alone, lattice warp off (LatticeWarp 0) |
+0.80 ms | |
| Hex alone, rotation and mirror off | +1.39 ms | |
| Method fixed at compile time (a test copy of the master, preset with Macro) | +2.52 ms | |
| Two samples blended by a noise texture (the common cheap trick; a test material, its look not measured) | +0.16 ms | |
| Unreal's TextureVariation node | +0.10 ms | +0.09 ms |
Instruction counts (UE's estimate, base pass pixel shader): M_TileBreak_Master 3,824, M_TileBreak_Decal
3,828; every method sits behind a uniform branch, so only the selected method runs. 0 sampler slots are used
(every read goes through the shared world sampler), so TileBreak never hits the 16-sampler limit.
To measure on your own hardware: open L_Benchmark, press Play, open the console and type stat gpu (or
csvprofile frames=300), then switch Method on MI_TileBreak_SandyGravel or GlobalEnable in MPC_TileBreak.