Docs

Reference

Performance

Measured GPU cost of the blend and the capture actor, shader instruction counts, texture reads and ways to make it cheaper.

The blend runs in the pixel shader of every pixel of a blended mesh; its cost scales with how much of the screen the blended meshes cover. Measured on an Apple M5 (10-core GPU), UE 5.8.2, Metal SM6, in Play In Editor (1499 x 684 game viewport, Lumen, Virtual Shadow Maps, Nanite), 20 blended Nanite boulders (SM_GB_Boulder_05) on flat ground in L_Demo, with the CSV profiler (300 frames per configuration, configurations interleaved, the median GPU frame time of each configuration's fastest round: other work on the machine can only add time):

These GPU times were measured on this build (723 pixel-shader instructions with the defaults, 645 with ColourOnly), in one run with no other Unreal editor open (3 interleaved rounds per view).

  • Dense view: a camera looking down into the group, rocks filling 98.4 % of the screen, close to a worst case.
  • Typical view: a player-height view where the rocks cover 23.1 % of the screen (the pixels that change when the rocks are hidden, their shadows included). The dense cost scaled by the blended pixels predicts about 0.41 ms here; the measured figure is a little higher.
  • In between: with rocks on 47.9 % of the screen the default costs +0.80 ms (ColourOnly +0.23 ms).

Shader size is from the material statistics of M_GroundBlend_Rock with the B05 rock set and the Sand preset.

Configuration Pixel-shader instructions (this build) Added by the blend Typical view GPU (ms) vs off Dense view GPU (ms) vs off
UseGroundBlend off + UseRockDetail off (plain rock) 223 -70 not measured not measured
UseGroundBlend off (blend compiled out, rock detail on) 293 0 11.81 0 12.83 0
Default (capture + captured colour) 723 +430 12.32 +0.51 14.60 +1.77
UseCapturedColour off 704 +411 12.31 +0.50 14.57 +1.74
ColourOnly on 645 +352 11.91 +0.10 13.29 +0.46
ColourOnly on + UseCapturedColour off 626 +333 not measured not measured
UseCapture off (flat ground, no capture actor) 672 +379 not measured not measured
UseRockColourSet on (default blend) 762 +469 not measured not measured
UseRockColourSet on, UseGroundBlend off 335 +42 not measured not measured

In short: in the typical view the default blend costs +0.51 ms of GPU time and ColourOnly +0.10 ms; in the dense view +1.77 ms and +0.46 ms, against 12.83 ms for the same rocks with the blend compiled out. The cost follows the blended pixels: about 0.24 million of them in the typical view (2.15 ms per million) and 1.01 million in the dense view (1.75 ms per million). Rock colour sets add +39 pixel-shader instructions when on; their frame time was not measured separately.

Other materials: M_GB_GroundPad 245 and M_GB_Example_CustomMaster 600 pixel-shader instructions. Vertex shader: 157 for the rock master in every configuration.

The capture actor. One Capture Ground (both captures) costs 7.03 ms of GPU time at Resolution 2048 / Colour Resolution 1024 (L_Demo's 252 m landscape) and 3.66 ms at 1024 / 512, measured in the same run as the GPU frame-time difference with Capture Ground called every frame (fastest round, the dense-view run); the call itself takes 0.04 ms / 0.04 ms on the game thread. In game it runs once at BeginPlay (and on each Follow Camera recentre). In the editor, Live Update runs it 4 times a second, so at 2048 / 1024 it adds about 28 ms of GPU time per second of editing (about 2.8 % of the GPU); raise LiveUpdateInterval or turn Live Update off on very large areas.

Texture reads added per pixel by the blend with the defaults: 3 of the height capture, 1 of the colour capture, the ground set's 3 maps in each of 3 projections (top-down and two side planes) plus two 1 x 1 mip reads of its mean colour and roughness (the dust film), and one 1 x 1 mip read of the rock's mean colour. ColourOnly drops the ground normal and roughness reads (3 colour reads remain). The rock detail layer reads its texture 3 times (one per world plane), and a rock colour set 3 more.

Same camera and light: blend off, ColourOnly and the default (real renders)

Ways to make it cheaper: ColourOnly on small or distant meshes, UseGroundBlend off on instances that are never seen up close (it compiles the blend out), a smaller Resolution on the capture actor, and Far Fade Start / End closer.