GPU-Driven Crowd Rendering: From GPU Pose Evaluation to Android Vulkan

GPU-driven crowd rendering combines shared geometry with per-instance pose data to support independently animated characters within a batch. Instances reuse a Skeletal Mesh, Skeleton, and compatible baked animation data while maintaining separate playback states, transforms, and bone poses. The CPU updates animation sampling parameters and character state. The GPU evaluates poses, performs per-view visibility tests, and writes the visible Instance count to Indexed Indirect Args. During drawing, the Vertex Factory maps each Draw Instance to its original Instance ID through VisibleIds and reads the corresponding skinning matrices. This allows independent skinning over shared vertex and index data.

This article presents a GPU-driven crowd renderer implemented as a UE 5.7 plugin, focusing on the data relationships between animation storage, GPU pose evaluation, visibility testing, and indirect drawing. Android Vulkan device tests show reduced Game Thread and RHI Thread times under the configurations evaluated here. Whole-scene GPU time also depends on mesh and Skeleton size, Mesh LOD settings, and occlusion conditions. The implementation is developed in frame data-flow order, followed by comparisons of character count, animation-set size, and occlusion to examine performance.

Contents
Both characters use the same geometry. Compute writes their poses and visible list separately; the Vertex Factory brings the two outputs together.
Both characters use the same geometry. Compute writes their poses and visible list separately; the Vertex Factory brings the two outputs together.

Character State and Shared Rendering Resources

A Skeletal Mesh supplies vertices, indices, LOD Sections, and material assignments. The Skeleton supplies parent indices and inverse reference matrices. Baked animation frames can also be shared, provided their bone indices match the runtime Skeleton. Each character has its own sampling record, current and previous transforms, and Bounds. Switching actions usually changes the sampling record: frame indices, frame interpolation fractions, and track weights. The vertex and index data can stay in place.

Think of playback for characters 2 and 7 as two lookups. Character 2 reads the two samples around its current time in the walk animation; character 7 reads its own adjacent attack samples. Each writes a separate range in PoseRows. This skinning-matrix Buffer is indexed by original Instance and Skeleton Bone, with three float4 elements per bone. The Vertex Factory first recovers the original character ID from the visible list, then reads those rows using the bone index. There are three index spaces here: animation sample frames, original Instance IDs, and the Instance indices assigned within a draw. The Vertex Factory connects the last two.

Draws are prepared per view and LOD. Two material Sections in one LOD can share the visible list while retaining their own Index Count, First Index, Base Vertex, and material. The implementation creates a separate 20 B Args Buffer for each subsequent Section and copies Instance Count from the first Section’s command. Both source and destination offsets are 4 B, and the copy size is 4 B. One count update therefore drives every Section’s geometry range. Sharing the list still produces multiple draws: Section and view counts directly affect submission count.

Cull builds one visible list for the current View and Mesh LOD. The body and armor each submit a draw over their own index range. Both Vertex Factories find characters 2 and 7 through the same VisibleIds, so both characters appear with armor.
Cull builds one visible list for the current View and Mesh LOD. The body and armor each submit a draw over their own index range. Both Vertex Factories find characters 2 and 7 through the same VisibleIds, so both characters appear with armor.

Sending Character Data to the Render Thread

The plugin prepares shared meshes, bone tables, and baked animations when it creates the Scene Proxy. Once these resources are ready, each frame changes playback state and, where needed, transforms, Bounds, and physics poses. The game-side SendRenderDynamicData_Concurrent takes a snapshot and queues the update for the Render Thread. GPU resources are created or replaced only after that thread receives the snapshot, giving the GPU a consistent set of data for the frame.

Update When submitted GPU consumer
Playback sampling record Dynamic render-data update Pose Compute
Instance Transform and Bounds When Instance data is dirty Vertex Factory reads Transform; Cull Compute reads Bounds
Physics Rows Repacked when physics pose is dirty Local Pose blending

These updates have different costs. A stationary monster still advances its animation time, while its Transform and Bounds can keep their existing resources. Submitting dynamic data copies the sampling array on the Game Thread; the Render Thread builds a new structured Buffer from that array. New physics rows are uploaded only when dirty. Other updates continue to bind the existing Physics Rows.

Each C++ FPoseSample occupies 240 B and matches the Shader structure. Eight base tracks take 128 B, two Montage tracks take 32 B, Additive and Physics each take 16 B, and Root Correction’s three float4 values take 48 B. For 324 monsters, the sampling arrays total 77,760 B. This is the logical size of complete sampling records. Transforms, Bounds, Physics, allocation alignment, and actual transfer overhead must be counted separately.

An Instance index is local to a component batch. If four monster types are managed by separate component groups, Scavenger Instance 2 and Warrior Instance 2 refer to different lists, pose matrices, and mesh resources. The examples using characters 2 and 7 below assume that both belong to the same batch.

Playback Clocks and Action Transitions

Each character’s Playback stores Clip, Time, Rate, and a looping flag. Tick begins with Time += DeltaTime × Rate. Looping clips wrap at their duration; non-looping clips clamp to the endpoints. The CPU then converts time to a floating-point frame coordinate within the clip. A 31-sample animation at 35% of its duration falls at frame 10.5. The CPU converts frames 10 and 11 to global frame indices in the shared Buffer and stores 0.5 in the sampling record. The GPU does not need to interpret playback clocks or looping rules.

A walk-to-attack transition temporarily retains two sets of samples. With a 0.20 s transition, the attack weight is 0.25 after 0.05 s. If walking was the only original track, its weight becomes 0.75. If the original state had multiple tracks, the code multiplies each existing weight by 0.75 before adding attack. Each track continues advancing its own clock, so both poses change during the transition. When the transition ends, the target becomes the new primary state and the old tracks are removed.

The sampling record puts a track’s two frame indices, interpolation fraction, and blend weight in four 32-bit fields. Frame interpolation determines the pose of one track at this instant. Track weight determines that pose’s contribution to the combined result. In the preceding example, walking samples frames 10 and 11 equally, then contributes to the overall blend with weight 0.75. These two fractions belong to different operations.

The CPU uploads each Instance's frame indices and weights to InstanceSamples. BlendCS reads that record and BakedFrames through Shader Resource Views (SRVs), with each thread handling one Instance–Bone pair. In the diagram, the two clips interpolate to local translations X = 4 and X = 12, then blend to X = 6 using the transition weights. The resulting local matrix is written to BlendedLocals. ComposeCS reads the same Buffer as LocalRows, composes the bone hierarchy, and writes PoseRows.
The CPU uploads each Instance’s frame indices and weights to InstanceSamples. BlendCS reads that record and BakedFrames through Shader Resource Views (SRVs), with each thread handling one Instance–Bone pair. In the diagram, the two clips interpolate to local translations X = 4 and X = 12, then blend to X = 6 using the transition weights. The resulting local matrix is written to BlendedLocals. ComposeCS reads the same Buffer as LocalRows, composes the bone hierarchy, and writes PoseRows.

GPU Animation Sampling and Pose Evaluation

Baking Animation Resources

The build step computes ceil(Duration × SampleRate) + 1 from clip duration and sample rate. The extra sample covers the endpoint. A 1 s clip at 30 Hz writes 31 samples, from sample 0 through the final frame. Each clip records its starting frame in the shared Buffer; the next clip is appended after it. Runtime playback time maps to a frame within the clip, then adds the starting offset to obtain the actual Buffer index. Two actions playing sample 10 can therefore read completely different addresses.

The build can output Local Poses or prepare precomputed matrices for the simple branch. Both use float4 elements, but the evaluation branch determines what those elements mean. Bone count, bone order, and reference pose must agree for sampling to use the same Bone Index. If a resource set stores both Local Poses and SimpleFrames, include both in the resource budget.

Reading Bone Poses from BakedFrames

When playback falls between two frames, the CPU writes the adjacent global frame indices into Track.x and Track.y, and the frame interpolation fraction into Track.z. BlendCS passes that Track and the current thread’s Bone Index to SampleTrack.

BakedFrames is a shared StructuredBuffer<float4>, stored consecutively by frame and then bone. With 12 bones, one frame takes 36 float4 elements. To read Bone 4 in frame 10, skip ten frames and then four bones within the frame, reaching element 372. The same bone in frame 11 begins at element 408.

FLocalPose SampleTrack(uint4 Track, uint Bone)
{
    const uint First = (Track.x * BoneCount + Bone) * 3;
    const uint Second = (Track.y * BoneCount + Bone) * 3;
    const float Alpha = saturate(asfloat(Track.z));
    FLocalPose Pose;
    Pose.Rotation = BlendRotation(BakedFrames[First], BakedFrames[Second], Alpha);
    Pose.Translation = lerp(BakedFrames[First + 1].xyz, BakedFrames[Second + 1].xyz, Alpha);
    Pose.Scale = lerp(BakedFrames[First + 2].xyz, BakedFrames[Second + 2].xyz, Alpha);
    return Pose;
}

The Shader reads three float4 elements at each address. Rotation uses BlendRotation; translation and scale each use lerp. The returned FLocalPose describes this bone on this Track. BlendCS subsequently combines it using the track weights.

Bone 4 in the two frames is separated by 36 float4 elements in the same BakedFrames Buffer. Each read fetches three elements for rotation, translation, and scale.
Bone 4 in the two frames is separated by 36 float4 elements in the same BakedFrames Buffer. Each read fetches three elements for rotation, translation, and scale.

Buffer Layouts for Local Poses and Skinning Matrices

The full path lays out baked data as [Frame][Bone][3 × float4]. The first element holds a unit quaternion; the xyz components of the second and third hold local translation and scale. Addressing is the same as in the preceding section. Interpretation depends on whether the resource contains Local Poses or precomputed Skinning Matrices. The Local Pose path interpolates quaternion rotations and linearly interpolates translation and scale. The fast path interpolates precomputed matrix rows directly into data usable by the draw.

Quaternions q and -q represent the same rotation. If two samples have a negative dot product, the Shader flips the second quaternion to follow the shorter arc. If they are already close, normalized linear interpolation avoids computing an angle and dividing by a nearly zero value. Otherwise, it uses angle-weighted interpolation. This applies both between adjacent samples within a clip and when blending Local Poses across tracks.

The bone table takes 64 B per bone. Its first 16 B element contains the Parent Index and Montage Mask; the next three hold the inverse reference matrix. Like baked frames, it can be shared by characters using the same Skeleton. For 102 bones, the shared table takes 6,528 B of logical data, while one PoseRows Buffer for 36 characters takes 176,256 B. The former scales with bones; the latter also scales with characters. Keep these multipliers separate when estimating memory.

Blending Local Poses

Shader resource Contents Reader / writer
BakedFrames Baked animation samples Read by Blend
SimpleFrames Precomputed skinning matrices Read by distant simple branch
BlendedLocals/LocalRows One intermediate Buffer: blended local transforms in the full branch, interpolated matrices in the simple branch Blend writes as BlendedLocals; Compose reads as LocalRows
PoseRows Skinning matrix rows for drawing Written by Compose; read by Vertex Factory

The full Local Pose path extracts rotation, translation, and scale separately. Rotation blending handles quaternion signs and normalizes the result. Base tracks accumulate according to their effective weights. If the accumulated weight is 3 and a new track has weight 1, the interpolation fraction for that step is 1 / 4. The result therefore preserves the contributions already accumulated from earlier tracks.

Additive, Montage, and Physics are applied as required. Additive modifies the already blended local pose. Montage depends on both playback weight and the current bone’s Mask. Physics uses the index and weight supplied in the sampling record. Root Correction applies only at the root bone. The first Compute Pass writes these results to LocalRows; the next handles the hierarchy.

For a bone, the order of base tracks, Additive, Montage, and Physics changes the result. Baked base animation supplies rotation, translation, and scale relative to the parent. Additive applies a delta to that pose. Montage blends selected bones using their Masks and weights: an upper-body action can override the torso, while a zero-mask bone keeps its existing pose. Physics can then blend in a physical pose on the relevant bones. Root Correction is applied at the root, and child bones inherit it during hierarchy composition.

Cross-clip blending and propagation through the bone hierarchy run in separate Compute Passes. One Blend thread handles a (Bone, Instance) pair and writes only its three rows. Compose needs that Instance’s parent-bone results, so it depends on the complete BlendedLocals output. The two passes declare the resource as an Unordered Access View (UAV) and an SRV respectively, allowing the Render Dependency Graph (RDG) to establish the write-to-read dependency. A whole Skeleton does not have to fit in one thread group: the parent may belong to another group, and Compose reads the completed Buffer.

Both Dispatches use 8×8 thread groups. In a hypothetical batch of 36 Instances and 102 bones, each Dispatch launches 13 groups along the Bone axis and 5 along the Instance axis: 4,160 threads. Of these, 3,672 represent valid Instance–Bone pairs; the rest exit at the bounds check. For larger batches, thread count mainly grows with Instances and bones. The simple matrix-interpolation branch reduces work per thread while retaining the output layout and Dispatch dimensions.

Hierarchy Transforms When Raising an Arm

Raising the upper arm moves the hand even when the hand’s local pose relative to the arm stays unchanged. To move the mesh’s hand with it, the Shader first needs the hand bone’s current transform in the character’s Model Space.

BlendCS writes the local matrices, and ComposeCS reads them through LocalRows. The Hand thread starts from the hand’s local matrix and follows Skeleton[Bone].Hierarchy.x up the parent chain within the same Instance. In the illustrated chain, Hand’s local matrix first transforms into Arm space. Left-multiplying the local matrices of Arm, Spine, and Root gives the transform from Hand to Model Space.

float4x4 model = LoadLocal(instanceBase, bone);
for (int parent = ParentIndex(bone); parent >= 0; parent = ParentIndex(parent))
    model = mul(LoadLocal(instanceBase, parent), model);

float4x4 skin = mul(model, inverseReference);

For a mesh vertex influenced by Hand, the Hand Inverse Reference Matrix first transforms the reference-pose vertex into that bone’s local space. The composed Model Space Matrix then transforms it into the raised-arm pose. ComposeCS combines these steps into a Skinning Matrix and writes its first three rows to PoseRows for the Vertex Factory.

The Hand thread reads local matrices along Hand, Arm, Spine, and Root, composes the raised-arm pose, and generates the matrix used for skinning.
The Hand thread reads local matrices along Hand, Arm, Spine, and Root, composes the raised-arm pose, and generates the matrix used for skinning.

Animation Simplification and Montage at a Distance

Suppose two characters are equally far from the camera, both beyond the Animation LOD threshold. One only walks and can use precomputed Skinning Matrices. The other walks while playing an attack Montage; it needs to blend the attack into the bones selected by the Montage Mask before computing skinning matrices.

The simple branch requires SimpleFrames, InstanceBounds, and a valid distance threshold. UseSimplePose checks distance to the view, whether Track 0 is valid, whether Additive, Montage, and Physics weights are zero, and whether Root Correction is an identity transform. If any check fails, it evaluates the full Local Pose.

For the walking-only character, BlendCS uses Track 0 to read two frames from SimpleFrames and interpolate each bone’s three matrix rows. ComposeCS still runs and copies the result into PoseRows. The character with an attack Montage samples Local Poses from BakedFrames, blends the layers, composes the hierarchy, and applies the Inverse Reference Matrix. The Vertex Factory reads the same output layout for both.

Mesh LOD independently chooses vertices and indices. Animation LOD changes how the bone pose is generated. Row-wise interpolation of precomputed matrices can differ from full pose evaluation; check actions and silhouettes around the transition.

At the same distance, the walking character interpolates skinning matrices directly; the character with an attack Montage first blends Local Poses. Both output the same PoseRows layout.
At the same distance, the walking character interpolates skinning matrices directly; the character with an attack Montage first blends Local Poses. Both output the same PoseRows layout.

Updating Distant Sampling Records Less Often

Animation LOD also has a separate CPU control for reducing sampling-record update frequency at a distance. The current implementation requires a player camera, a positive configured update rate, and a single action without a transition, Montage, Additive, or non-identity Root Correction. When eligible, the playback clock still advances every Tick. The sampling record is recomputed only when accumulated time reaches the update interval.

At 10 Hz, the ideal update interval is 100 ms. Each update samples at the current playback time, so returning to the near range does not leave the character’s playback clock behind. Between updates, it uses the previous samples, which can produce more visible stepping. This setting controls CPU sampling-record refreshes. The GPU separately decides whether to use the simple matrix branch. Pose Dispatch dimensions still follow candidate Instance and bone counts; fewer record updates do not automatically reduce GPU thread count in proportion.

Visibility Tests and LOD Distance Ranges

Cull Compute assigns one thread to each candidate character. This path represents Bounds as a sphere center and radius; a negative radius disables an entry. Frustum tests examine each plane. If the center’s signed distance is smaller than the negative radius, the whole sphere is outside and can be skipped. A sphere intersecting a plane continues to the following tests.

Distance testing first computes the offset from the view in component-local coordinates, then converts it to a world-space offset using the world axes. Squared distance can be compared directly with squared thresholds. Each LOD has an interval with an inclusive minimum and exclusive maximum. With thresholds at 18 / 32 / 50 m, a character exactly 32 m away enters the interval beginning at 32 m. A character passes only one LOD in a mutually exclusive set of intervals. The actual mesh level also depends on the LOD resource bound by the batch.

Character 8 is outside the frustum and can be rejected before occlusion testing. Characters 5 and 7 remain inside the frustum; historical HZB rejects them in this example. Character 2 in front of the wall passes every test and is appended to VisibleIds.
Character 8 is outside the frustum and can be rejected before occlusion testing. Characters 5 and 7 remain inside the frustum; historical HZB rejects them in this example. Character 2 in front of the wall passes every test and is appended to VisibleIds.

Distance Ranges When a Mesh LOD Is Not Resident

The Scene Proxy first performs a coarse view test using the entire component’s Bounds. Only then does it prepare Compute culling for each available Mesh LOD in that view. It skips any level that Streaming has not made resident. The first resident LOD starts at the component’s minimum draw distance, allowing nearby characters to use geometry that is ready while higher-detail meshes are still loading.

Take a minimum draw distance of 0 m and thresholds of 18 / 32 / 50 m. With all four levels resident, a character at 10 m uses LOD 0 and one at 26 m uses LOD 1. If LOD 0 is not resident, the Scene Proxy skips it and changes the first resident level, LOD 1, from a lower bound of 18 m to 0 m. Its upper bound remains 32 m. Both characters now pass LOD 1’s distance test. Cull Compute receives squared distance intervals and writes separate VisibleIds and Indirect Args for each level.

Each LOD’s Cull Dispatch reads candidates from the same Bounds set. Adding another LOD makes distance transitions finer but can also add another candidate scan and the corresponding Section draws. When comparing LOD settings, look first at candidates, resident levels, surviving Instances per level, and triangles, then at whole-scene time. The same number of visible characters can carry different geometry costs.

When LOD 0 is not resident, LOD 1 fills the near range from 0 to 18 m. The transition to LOD 2 remains at 32 m.
When LOD 0 is not resident, LOD 1 fills the near range from 0 to 18 m. The transition to LOD 2 remains at 32 m.

Conservative HZB Occlusion Tests

The Hierarchical Z Buffer (HZB) stores depth in Mips so a large screen area can be tested with a few samples. The plugin’s occlusion Shader constructs a box around the Bounds sphere and projects its eight corners into the previous frame’s Clip Space. The corners give a screen rectangle and the nearest depth under reversed Z. If a corner crosses the near plane, projection is invalid, or the expanded rectangle extends outside the valid range, this test keeps the character.

The screen rectangle expands by one base-level Texel on each edge. Its longer side selects the Mip. A footprint 26 Texels wide and 12 high chooses ceil(log₂(26)) = 5, clamped to the resource’s available levels. The Shader reads the rectangle’s four corners at that Mip and takes the farthest occluder depth. Reversed Z assigns larger values to nearer points, so this is the minimum of the four samples. If the Bounds’ nearest depth plus a bias is still smaller, historical depth indicates that the Bounds is occluded.

float longestSide = max(footprint.x, footprint.y);
uint mip = min((uint)ceil(log2(max(1.0, longestSide))), mipCount - 1);
bool occluded = nearestDepth + 0.0001 < furthestDepth;
The rectangle crosses four Mip 5 Texels. The farthest sample is 0.61, still closer than character 5's nearest Bounds point, so the character is culled.
The rectangle crosses four Mip 5 Texels. The farthest sample is 0.61, still closer than character 5’s nearest Bounds point, so the character is culled.

For a 26×12 Texel footprint, a Texel at the chosen Mip covers 32×32 base-level Texels. The longer side is smaller than one target-Mip Texel, but the rectangle can straddle boundaries as its screen position changes. The Shader converts minimum and maximum UVs to two integer coordinates, then combines their components into at most four locations. If both horizontal coordinates fall in one column, it reads that column repeatedly without changing the result. Out-of-range rectangles keep the candidate before sampling, so off-screen data cannot serve as occlusion evidence.

A reversed-Z example makes the comparison direction explicit. The nearest Bounds depth is 0.35, and the four occluder depths are 0.72, 0.68, 0.61, and 0.70. Their conservative bound is the minimum, 0.61. With valid history, 0.35 + 0.0001 < 0.61 places the target behind that depth. If one region instead sees background at 0.1, the comparison fails and the character remains submitted. This may retain hidden characters, but avoids rejecting an entire character whose projection straddles an occluder edge.

Bounds Size and Culling Granularity

The test project builds each character’s Bounding Sphere from Skeletal Mesh Bounds, applies the character Transform, then multiplies its radius by 1.5. The extra room avoids testing a character that swings its arms or lunges using tightly fitted reference-pose Bounds. Cull reads the Bounds prepared at this stage. It does not traverse skinned vertices to rebuild Bounds for every animation sample.

Radius affects both frustum and HZB tests. If the center is −1.2 m from a frustum plane, a 1 m sphere can be rejected, but a 1.5 m sphere still intersects the plane. For HZB, a larger radius also expands the screen projection and moves the Bounds’ nearest point toward the camera. Both effects can retain more candidates. The factor 1.5 is this asset set’s test configuration; changing animation coverage still calls for checking nearby poses, occlusion edges, and clipping.

The crowd component also has aggregate Bounds. If the entire component is outside a view, that view does not prepare its per-LOD Cull passes. Once it enters, individual spheres are tested. Putting every monster of one type into a large component can share more resources, but expands the component Bounds and may send more characters into Compute as candidates. Component organization therefore affects culling granularity. These tests group by monster Mesh; they do not separately compare spatial grouping strategies.

HZB History on Windows and Android

Windows Deferred reads DepthStencil after the Base Pass and prefers its Resolve Texture. Android Vulkan’s Mobile path, at the ES3.1 Feature Level, reads Mobile Scene Depth in PostRenderView. It accepts only depth produced in the current frame, with a valid extent and readable at that stage. The plugin also requires a single-sample Texture2D. Both platforms then enter shared HZB construction code. The Seed Pass takes the View Rect and writes the farthest source depth covered by each base-level Texel. Each Reduce Pass reads 2×2 Texels and retains the smaller reversed-Z depth, down to 1×1.

Build path Base level Mip count Format
Windows Deferred 512 × 512 10 PF_R32_FLOAT
Android Vulkan (ES3.1 Feature Level) 256 × 256 9 PF_R32_FLOAT

These are the sizes configured in the current plugin’s two code paths. Android’s 256² base contains a quarter as many Texels as Windows’ 512² base, so one Seed Texel covers more of the source image. If that area includes background, its farthest depth makes the test more conservative and may retain extra characters. The occlusion benefit still depends on the scene and camera.

History is stored by View Key. Reuse requires the immediately preceding frame, an identical View Rect, matching unjittered View Projection, and no Camera Cut. If moving the camera makes the matrix check fail, this implementation skips HZB and retains frustum and distance tests. Matrix matching is an important restriction of this version: the fixed-camera wall results below cannot be applied directly to a continuously moving camera.

Frame N saves HZB and its View Projection. After validation in Frame N+1, the previous projection maps the current character Bounds into that HZB.
Frame N saves HZB and its View Projection. After validation in Frame N+1, the previous projection maps the current character Bounds into that HZB.

Writing Visible IDs and Indirect Args on the GPU

A surviving thread atomically increments DrawArgs[1]. The old value returned by the atomic operation is the character’s output index in VisibleIds. If character 7 passes first and character 2 follows, the old values are 0 and 1, producing [7, 2] and Instance Count = 2. A different execution order can produce [2, 7], swapping which original character each slot points to. The vertex stage remaps through the list, so correctness does not depend on append order.

uint drawIndex;
InterlockedAdd(drawArgs[1], 1, drawIndex);
visibleIds[drawIndex] = originalInstanceId;

This is both indexed and indirect drawing. The Index Buffer determines which vertices form the triangles. Indirect Args determines the command’s index count, Instance count, and starting positions. Indexed Indirect Args consists of five 32-bit fields: Index Count, Instance Count, First Index, Vertex Offset, and First Instance. First Instance is zero in this Section submission path. Vulkan’s Indexed Indirect layout places all five in 20 B. API drawCount is the number of commands processed by one call; Buffer InstanceCount is the number of Instances drawn by one command.

The same atomic operation allocates a list index and increments the draw's Instance Count.
The same atomic operation allocates a list index and increments the draw’s Instance Count.

Indexed Indirect Args Fields and Offsets

For three Sections of one LOD, the main Cull Pass first prepares the five fields for Section 0. Geometry parameters come from that Section. InstanceCount starts at zero, and Cull Compute increments only that field. Sections 1 and 2 retain their own index ranges and acquire the same visible count through a Buffer Copy. The CPU organizes index ranges and materials; the GPU determines Instance Count for the current View and LOD.

Relative byte offset Field Units / source
0 Index Count Index count for this Section
4 Instance Count Surviving Instance count
8 First Index Starting Index Buffer element
12 Vertex Offset Signed vertex index offset
16 First Instance Initialized to 0 here

In Shader DrawArgs[1], index 1 means the second 32-bit element, corresponding to byte offset 4. The C++ copy for other Sections transfers 4 B from source offset 4 to destination offset 4. This field-only copy lets Sections share the visible list without overwriting geometry parameters. Main-view VisibleIds capacity follows candidate Instance count. With 144 candidates and 20 survivors, only the first 20 entries participate in this draw.

Suppose two characters survive in one View. Section 0 uses 960 indices and Section 1 uses 240. Both commands have Instance Count = 2, and each draws its portion of both characters. Count the characters once. Summing the two Instance Counts gives 4 Section-instance submissions, not four characters. Shadow and other View lists must be considered separately. GPU readback in the Android section reads the first Args per Mesh and LOD to avoid counting multiple Sections of one LOD twice.

Reading Character Poses in the Vertex Factory

Suppose this draw has SV_InstanceID = 1, and the second visible-list entry is 2. Character 2 is the index used for PoseRows and Instance Transform. Likewise, a vertex’s Bone Index comes from its Influence data. During building, the Section-local Bone Map is converted to Skeleton Indices. The implementation packs a 16-bit Bone Index and 16-bit Weight into a single 32-bit integer, with weight in the upper half.

With 12 bones per character, Bone 4 starts at element 3 × (2 × 12 + 4) = 84. Taking the dot product of the vertex position with rows 84, 85, and 86 produces the coordinates under that bone’s transform. Other Influences repeat the lookup and weighted accumulation. The result is normalized by the actual weight sum, then transformed by the character’s Instance Transform. Two characters can thus share vertices and Influences while reading different matrices through their original Instance IDs.

uint instance = visibleIds[drawInstance];
uint bone = packedInfluence & 0xffffu;
float weight = float(packedInfluence >> 16);
uint poseRow = 3 * (instance * boneCount + bone);
Remap Draw Instance to the original character, then use Skeleton Bone Index to calculate the first skinning-matrix element.
Remap Draw Instance to the original character, then use Skeleton Bone Index to calculate the first skinning-matrix element.

Shared Addressing for Positions, Tangents, and Previous Positions

The Vertex Factory indexes VisibleIds using the draw’s Instance index, then uses the original ID for pose and Transform lookups. Positions and tangents follow this order. Position vectors have w = 1 so matrix dot products include translation. For TangentX and the normal TangentZ.xyz, CrowdSkinVector uses w = 0 and normalizes after the linear transform. This path does not compute a separate inverse transpose for normals. With non-uniform scaling or shear, keeping the normal perpendicular to the deformed tangent plane generally requires the effective linear transform’s inverse transpose or reconstruction from the transformed tangent basis. The device measurements here do not separately validate those cases. If the character Transform translates X by 10, local position (1, 0, 0, 1) becomes (11, 0, 0); direction (1, 0, 0, 0) receives no translation.

Changing geometry LOD changes vertex indices and the Influence Buffer with the render resource. Nearby fingers may use several small bones; a distant mesh may redistribute those weights to fewer joints. For this plugin, each LOD’s Skin Weight data must be mapped through its Section Bone Map to the same Skeleton indices during preparation. Multiple LODs can then read the current PoseRows. This changes skinned vertex count and per-vertex Influences while retaining one Skeleton pose per character.

Character Visibility Across Passes

A character outside the main view may still cast a shadow onto visible ground. The plugin’s Shadow View path can recull against the Shadow Frustum and generate its own draw arguments. The main-view list includes only characters accepted by that view. To assess character-shadow draws and triangles, follow Shadow View submission and check the Mesh LOD it binds.

Main-view visibility resources are looked up by View and resident LOD. The shadow path dispatches Cull again on the prepared Bounds with a Shadow Frustum and binds the last configured available LOD entry. Shadows share character PoseRows but have their own VisibleIds and Args. A character casting a shadow can be absent from the Base Pass. Conversely, a clearly visible character still needs to pass the shadow frustum and its Section’s Cast Shadow setting to enter a shadow draw.

When adding a View or shadow Pass, distinguish which work increases. Animation poses can be reused across views. Visibility tests and Instance lists change per view. Graphics cost follows the geometry actually submitted in each View; main-view character count cannot determine shadow GPU time. Keep character-shadow settings with any test that disables them.

Compute-to-Graphics Resource Access

The Render Dependency Graph (RDG) passes Compute output to its consumers. After GPU writes or Section Count copies finish, Indirect Args is exported as ERHIAccess::IndirectArgs for command processing. The visible list is exported as ERHIAccess::SRVGraphics for the Graphics Shader implementing the Vertex Factory. Both Buffers come from the same culling stage, but one controls draw size and the other character addressing.

The plugin binds each Section’s Args Buffer with FMeshBatchElement::IndirectArgsOffset set to 0. That offset is relative to the RHI Buffer. A nonzero Vulkan offset refers to the command’s position within the underlying VkBuffer. Check the Buffer object alongside any offset. The Section analysis here follows plugin Mesh Batch bindings and device GPU readback.

Indirect Args launches two Instances. The Vertex Factory finds the original characters through VisibleIds, then reads their poses and transforms.
Indirect Args launches two Instances. The Vertex Factory finds the original characters through VisibleIds, then reads their poses and transforms.

Sections of the same LOD bind that LOD’s Index Buffer, selecting their ranges with First Index and Index Count. Source Skin Weights use a Section-local Bone Map; the plugin converts them to Skeleton Indices when building LOD data. If two Sections both store local Bone 3 but map it to Skeleton Bones 8 and 21, their packed indices become 8 and 21. The Vertex Factory no longer needs a per-material Section Bone Map lookup. Different LOD vertices can also reference the same bone’s PoseRows.

Motion Vectors When a Character Raises an Arm

Character 2 stands still and raises its hand. Its Instance Transform has not changed, but a vertex on the hand has moved. The Vertex Factory computes that vertex’s position with the previous frame’s Previous PoseRows, then again with the current PoseRows. Each result is projected to the screen. The Velocity Pass uses the two positions to generate a motion vector.

In this frame, Draw Instance 1 reads VisibleIds[1] and finds original Instance ID 2. Even if the two frames sort VisibleIds differently, both pose and Instance Transform lookups use ID 2. If the bone pose was not updated this frame, Previous PoseRows binds to the current PoseRows. Instance Transform updates are checked separately, so movement of the character as a whole can still produce a motion vector.

Both frames read character 2's pose. The arrow goes from the hand vertex's previous screen position to its current position.
Both frames read character 2’s pose. The arrow goes from the hand vertex’s previous screen position to its current position.

Submission Requirements on Windows and Android

Assets and animation algorithms can be reused on both platforms, but Shader Platform and Render Hardware Interface (RHI) capabilities determine whether this rendering path can run. The plugin explicitly accepts SM5-capable Shader Platforms as well as Android Vulkan ES3.1 and PC Vulkan ES3.1 preview platforms. Resource preparation also checks RHI support for indirect drawing. These checks sit at the actual preparation entry point: having animation Buffers or compiled Shaders alone does not establish a submit-ready Mesh Batch.

The plugin uses the same 20 B Indexed Indirect Args layout, per-Section Buffer bindings, and Vertex Factory lookups on both platforms. Verified differences concern Scene Depth sources, HZB base sizes, and runtime configurations. Windows videos demonstrate animation, skinning, and movement past the wall. Android GPU readback additionally measures the Instances written for submission, while device timings measure whole-scene cost in those configurations. The same Args fields explain draw size on both platforms; performance comparisons still need their respective measurement conditions.

Android Vulkan Device Results

The Android tests use Adreno 740. Within each native/GPU Driven comparison, the camera, placement, animation assignment, and LOD thresholds match. Standard comparisons run twice per mode for 240 frames per run and average the corresponding run statistics. P95 is the 95th-percentile frame time, computed separately for each run and then averaged. Draw Calls in this table are Unreal’s whole-scene statistics.

Test configuration Mode Game Thread Render Thread RHI Thread GPU Frame time P95 Draw Calls
162 characters, 16 clips, close view Native 8.54 ms 7.16 ms 10.16 ms 29.42 ms 33.26 ms 444
Same GPU Driven 3.93 ms 6.34 ms 5.85 ms 23.74 ms 25.38 ms 90
160 characters, different meshes, 16 clips, character shadows off Native 9.45 ms 8.53 ms 15.19 ms 21.82 ms 29.82 ms 608
Same GPU Driven 3.40 ms 5.35 ms 5.84 ms 24.79 ms 27.41 ms 70

In the 162-character close view, both modes have a pre-cull LOD distribution of 49 / 23 / 25 / 65. GPU Driven reduces Draw Calls from 444 to 90, Game Thread time by 4.61 ms, and GPU time by 5.68 ms. The 160-character comparison also substantially reduces Draw Calls and RHI Thread time, but GPU time rises by 2.97 ms. These asset sets differ in meshes, Skeletons, and shadow settings. Fewer draws mainly explain CPU-side changes; the GPU must still evaluate poses, run visibility Compute, and access vertices. Their costs scale with bones, candidates, and actual submitted work respectively.

Each asset set compares native rendering with GPU Driven. The bars share one time scale and report whole-scene GPU time.
Each asset set compares native rendering with GPU Driven. The bars share one time scale and report whole-scene GPU time.

The Android images use the same camera. Match the characters at the sides and the front and rear rows to see the image associated with each performance result.

Independent close-view A/B: 162 characters rendered by native Skeletal Mesh components.
Independent close-view A/B: 162 characters rendered by native Skeletal Mesh components.
The same camera in the independent close-view A/B, switched to GPU Driven. The ground uses the test scene's grid material.
The same camera in the independent close-view A/B, switched to GPU Driven. The ground uses the test scene’s grid material.

CPU and GPU Budgets on Android

Read native and GPU Driven measurements separately. In the 162-character close-view comparison, Draw Calls decrease by about 80% and Game Thread time by about 54%. The baselines are 444 calls and 8.54 ms respectively; these percentages describe different costs. Game Thread, Render Thread, RHI Thread, and GPU work also overlap, so their times cannot be added to estimate frame time. P95 shows slow-frame behavior; the separate thread timings show where pressure was reduced.

GPU cost has three useful parts to check. Pose evaluation depends on candidate Instances and bones. Culling depends on the candidate lists for each View and LOD. Skinning and rasterization depend on the Instances, geometry, and vertex Influences entering each Pass. Draw Calls can fall sharply while GPU time rises. For example, the 160-character asset set saves 9.35 ms on the RHI Thread while GPU time rises by 2.97 ms; P95 still improves by 2.41 ms. This shows a change in bottleneck, but whole-scene GPU time alone cannot identify which Shader Pass added cost.

Metric Implementation data What it measures
Registered characters Instance state, Bounds, pose output Size of CPU state and GPU Buffers
Main-view GPU submissions Per-LOD visible lists and Instance Count Characters entering main-view draws
Submitted triangles Section triangles per LOD multiplied by its visible count Geometry load after culling and LOD selection
UE Draw Calls Whole-scene Pass submissions Changes in whole-scene draw count

Test readback takes each batch’s Instance Count per LOD and multiplies it by that level’s total Section triangles. This measures main-view submitted work. Vertex caching, screen coverage, and Pixel Shader cost require their own GPU metrics.

Native and GPU Driven Test Conditions

Device comparisons first fix the geometry levels. Test code assigns each character an LOD using matching distance thresholds. The native group explicitly sets Forced LOD; GPU Driven uses the plugin’s distance bands. The comparable geometry budget is the one selected by the same camera and distance settings. Pre-cull LOD histograms verify that condition, after which the two paths handle visibility and submission independently.

The native group sets AlwaysTickPoseAndRefreshBones for the test characters. Native Skeletal Mesh components therefore keep advancing poses and refreshing bones, against GPU Driven with the same scene and actions. This setting limits where the measured Game Thread savings apply. A project’s native CPU baseline can differ if it uses visibility-based animation ticking, update-rate optimization, or another character budget scheduler.

There are two separate 162-monster close-view comparisons. The independent native/GPU Driven A/B above reports thread-level metrics for this asset set. The population sweep below measures 162 again before increasing to 243, 324, and 486. Native whole-scene draw counts are 444 and 445 in the two datasets. Use the population sweep’s own 162-character measurement as the starting point for its scaling trend.

Crowd Size and CPU Submission

The front close-view camera, 16 clips, and Mesh LOD thresholds of 50 / 62 / 75 m stay fixed while the formation grows in depth. Native rendering uses Unreal’s Skeletal Mesh path. Both groups use Android Vulkan, and these characters do not use Nanite. Pre-cull LOD 0 / 1 / 2 counts stay at 49 / 23 / 25; all added characters enter LOD 3. This measures the effect of additional distant characters on submission and evaluation while near geometry stays fixed.

Registered characters Native Game Thread GPU Driven Game Thread Native scene Draw Calls GPU Driven scene Draw Calls GPU Driven scene GPU
162 9.37 ms 3.97 ms 445 90 23.79 ms
243 13.42 ms 3.87 ms 642 90 24.45 ms
324 16.24 ms 3.93 ms 840 90 25.71 ms
486 23.77 ms 3.90 ms 902.5 90 26.74 ms

Draw Calls come from Unreal’s whole-scene RHI/DrawCalls. Each run takes the median over 240 valid frames, then the two run medians are averaged. At 486 characters, native run medians are 902 and 903 calls/frame, giving 902.5 in the table.

From 162 to 486 characters, GPU Driven Game Thread time stays within 3.87–3.97 ms and whole-scene Draw Calls stay at 90. Added characters join existing LODs and Sections, mainly changing Instance Count within the commands. GPU time still rises by 2.95 ms. Stable command count does not prevent pose evaluation, culling, and skinning work from growing with the population.

Two device images show formation depth at 162 and 486 monsters. The table below them lists Game Thread time at four population sizes.
Two device images show formation depth at 162 and 486 monsters. The table below them lists Game Thread time at four population sizes.

Monster Types and Counts

This table covers only the Android device performance comparisons in this article. Startup logs record four participating Skeletal Mesh types. Native and GPU Driven use the same proportions. Counts are registered characters before frustum and occlusion culling.

Monster type 162 243 324 486 648
Scavenger 36 54 72 108 144
Warrior 72 108 144 216 288
Hunter 36 54 72 108 144
Charger 18 27 36 54 72

The 162, 243, 324, and 486 steps each use four clips per type, sixteen in total. A separate interleaved 486/648 retest uses twelve per type, forty-eight in total. Both tests keep the same monster proportions.

Sampling and Resource Cost with More Animation Clips

This test fixes 324 characters, a front close-view camera, and no wall. There are 72 Scavengers, 144 Warriors, 72 Hunters, and 36 Chargers, with 4, 8, or 12 clips per type. Characters start at different phases and switch actions during playback. Root translation is locked in every group so action-dependent displacement does not change placement or visibility.

The base set includes walking, running, alert, and a stab for Scavenger; normal walking, fast walking, and two stabs for Warrior; a pounce, fast walking, and two swipes for Hunter; and a charge loop and three directional melee attacks for Charger. The 32- and 48-clip configurations add four or eight clips per type to those four base clips.

16 / 32 / 48 is the sum of available clips across the four types. Each monster selects sample frames for its current action and changes playback state when switching actions. Multiple monsters can share a clip while keeping different playback phases.

Available clips per type Four-type total GPU Driven scene GPU GPU Driven Game Thread Baked Animation Buffer data
4 16 25.71 ms 3.93 ms 2.66 MiB
8 32 25.77 ms 3.91 ms 5.72 MiB
12 48 25.80 ms 3.87 ms 10.27 MiB

A larger animation set gives each character more clips to choose from. Each update still reads only the frames specified by its active sampling tracks. In this test, animation data grows from 2.66 MiB to 10.27 MiB while the three GPU timings stay within 25.71–25.80 ms. Resource size uses actual clip durations, sample rate, and bone counts and covers baked data only. The timings describe this fixed camera and character population.

The top images are crops from the same PC animation video at 1 s and 4 s. Below are the Android device GPU times and baked animation sizes for the three clip configurations.
The top images are crops from the same PC animation video at 1 s and 4 s. Below are the Android device GPU times and baked animation sizes for the three clip configurations.

PC animation demo: 48-clip configuration

The camera stays fixed in the video. Large characters in front and smaller characters at the sides change poses at different times, showing independent playback state within one crowd. Forty-eight clips form the available action set; the video shows a continuous interval from that configuration.

Camera Angle and Mesh LOD Geometry Budget

With 324 characters and 32 clips, the low oblique camera has the highest baseline GPU Driven GPU time among four views: 26.01 ms. Fixing that camera and changing geometry thresholds to 18 / 32 / 50 m reduces LOD 0 candidates from 59 to 3 and GPU time to 19.85 ms. Shorter thresholds put still more characters into LOD 3, but do not reduce GPU time further in this dataset.

Distance thresholds Pre-cull LOD 0 / 1 / 2 / 3 GPU Driven scene GPU GPU Driven frame P95
50/62/75 m 59/24/26/215 26.01 ms 32.72 ms
18/32/50 m 3/18/38/265 19.85 ms 25.47 ms
10/20/32 m 0/6/15/303 20.86 ms 25.45 ms

Pre-cull Mesh LOD distribution verifies which candidate meshes changed with the thresholds. Actual GPU cost also depends on main-view survivors, screen coverage, skinning, and other Passes. The third configuration is about 1 ms slower than the second in whole-scene GPU time. Without a same-run per-Pass comparison, that difference cannot be assigned to one Pass.

An interleaved 486/648-character retest at the low camera, without a wall and with 18 / 32 / 50 m thresholds, gives approximately 25.42 ms P95 for both populations. These runs use 48 clips, a different configuration from the 324-character table. An early 16.82 ms result at 648 characters was not reproduced in the interleaved retest.

Visible Characters and GPU Time with a Wall

This comparison fixes 324 characters, 32 clips, the low oblique camera, and geometry thresholds of 50 / 62 / 75 m. The four types contribute 72, 144, 72, and 36 characters, with eight clips each. Both groups use GPU Driven and request HZB. Startup logs confirm the timing runs’ HZB configuration. In the second group the wall sits behind the front row, leaving that row visible. Its top and side edges are outside the camera. Match the front row in the images to compare the formation behind it.

Without the wall, the formation continues into the distance behind the front row.
Without the wall, the formation continues into the distance behind the front row.
With the wall, the front row remains visible and the rear rows are hidden. The gray area behind the characters is the wall.
With the wall, the front row remains visible and the rear rows are hidden. The gray area behind the characters is the wall.
Device images from the same camera, side by side. The gray area on the right is the wall. Below are submission counts from independent GPU readback and timings from the matching configurations.
Device images from the same camera, side by side. The gray area on the right is the wall. Below are submission counts from independent GPU readback and timings from the matching configurations.
324 characters, HZB requested in both No wall With wall
Monsters submitted (GPU readback) 243 88
Submitted triangles 1,640,978 790,337
Game Thread 2.60 ms 3.01 ms
Render Thread 4.13 ms 4.50 ms
RHI Thread 4.95 ms 4.45 ms
Whole-scene GPU time 25.95 ms 15.84 ms
Median frame time 24.80 ms 16.52 ms
Frame time P95 33.05 ms 16.80 ms

Adding the wall removes 155 submitted characters, about 63.8% of the no-wall group, and reduces triangles by about 51.8%. Whole-scene GPU time drops by 10.11 ms. These are short timing runs: two 240-frame runs per group, with the second pair in reverse order. Submission counts come from separate GPU readback runs and use median readback-frame counts. Both independent readback configurations recorded active HZB. The original timing runs confirmed the enabled setting without validating HZB on every timed frame. The 10.11 ms difference is for the entire scene. The independent fixed-wall HZB toggle below measures a different change. Each batch uses Instanced Indirect Draw, whose InstanceCount follows its visible list. The values 243 and 88 count monsters submitted across the main view’s LODs.

Moving Past the Wall

The fixed Android camera above is used for timing. These two PC videos move sideways along similar routes and pass the wall edge around seconds 2–4, revealing characters that were behind it. Compare that interval to inspect character presentation at the occlusion boundary. Video sampling can miss shorter transient changes, so the clips are best used to inspect overall behavior.

PC: native Skeletal Mesh, moving past the wall

PC: GPU Driven, moving past the wall

The wall-behind-front-row setup was later retested on the device for four runs, two with and two without the wall. Each 240-frame timing window includes two Indirect Args readbacks. In the sampled frames, all sixteen Mesh × LOD entries record an actually bound HZB Pyramid. This confirms execution of the HZB culling path for those samples, beyond the enabled startup setting. New readbacks give 244–245 characters without the wall and 88 with it. The 243/88 values above retain the original independent-readback definition, and the timing table still refers to the original timing runs.

In the original wall readback, submitted medians at the four LODs are 31, 3, 7, and 47, totaling 88. Without the wall they are 57, 22, 23, and 141, totaling 243. LOD 3 changes most, but triangle counts differ by type and LOD. Character count falls by about 63.8% and triangles by about 51.8%; these percentages need not match. Readback triangles sum each Mesh/LOD submission count multiplied by that level’s triangles.

Toggling HZB with the Wall Fixed

A separate heavy-occlusion comparison uses 486 characters, 48 clips, a fixed wall, and thresholds of 18 / 32 / 50 m, changing only the HZB setting. The wall hides the rear rows in both groups, so the visible images can look similar. GPU readback exposes the submission difference.

486 characters, fixed wall HZB off HZB on
Characters submitted 317 174
Submitted triangles 612,417 483,237
Whole-scene GPU time 21.06 ms 19.76 ms

Enabling HZB reduces GPU time by 1.30 ms with the same wall in place. The earlier 10.11 ms difference comes from adding the wall to the scene and includes changes in scene occlusion and submitted geometry. The two comparisons answer how an occluder changes workload and how much enabling HZB saves in a fixed scene, respectively.

Logical Sizes of Current and Previous Pose Buffers

The animation-set section already gives BakedFrames sizes. Runtime PoseRows scales with Instances and bones; clip count does not directly change each PoseRows Buffer’s size. Count current and previous poses, Instance Transforms, and each View’s culling output separately.

Animation data scales with sample frames; PoseRows scales with characters and bones. The diagram uses the appropriate multipliers for each.
Animation data scales with sample frames; PoseRows scales with characters and bones. The diagram uses the appropriate multipliers for each.

For a batch of 72 Instances and 102 bones, one PoseRows Buffer occupies 72 × 102 × 48 = 352,512 B, approximately 344.25 KiB. Distinct current and previous resources total about 688.5 KiB. The Local Pose path also uses an intermediate Buffer of the same size between Blend and Compose. Whether intermediates reuse other temporary resources, or history binds to the current resource, depends on graph lifetimes and that frame’s updates.

Resource Logical size Consumer
BakedFrames Sample frames × bones × 48 B Pose sampling Compute
SimpleFrames Precomputed matrix frames × bones × 48 B Distant simple-pose branch
BlendedLocals Instances × bones × 48 B Hierarchy Compose
Current/Previous PoseRows Instances × bones × 48 B per Buffer Vertex Factory
Instance Transform Instances × 48 B per Buffer Vertex Factory
Bounds Instance × 16 B Cull Compute
VisibleIds Candidate Instances × 4 B per View / LOD Graphics Shader
Indexed Indirect Args Sections × 20 B per View / LOD Indirect draw command

The table gives logical Buffer sizes calculated from element and matrix layouts. Actual allocations may include alignment, temporary resources, and driver overhead. More shared clips mainly increase resident baked data. More characters increase per-frame sampling records and pose Buffers. Another View mainly changes visible lists and draw resources. Identify which multiplier grew before investigating upload, pose evaluation, or graphics cost.

For diagnosis, first record candidates per View and submissions per LOD. If the counts differ greatly, determine whether frustum, distance, or HZB changed the set. If submitted counts are close but LOD changes triangles substantially, separate vertex skinning and draw costs. If increasing the animation set only enlarges BakedFrames while active track count stays fixed, each GPU frame still reads the samples selected by those tracks. These measurements answer different questions and explain why the CPU, GPU, and memory trends need not follow each other.

The units of 243/88 also matter. They are submitted Instances summed by Mesh and LOD in the current main view and change with view and occlusion. Instance Transforms and pose caches remain addressed by registered characters. Reducing submission to 88 does not mean the frame needs storage for only 88 poses. Evaluating poses for visible characters only would require a separate policy for shadows, previous positions, and characters re-entering the view. This implementation keeps pose evaluation and visible lists separate; the figures show their different scales.

Closing Thoughts

GPU-driven crowd rendering splits a character’s state across several stages. The CPU keeps behavior and playback parameters. Animation Compute generates poses. Visibility Compute decides which characters each view draws. Indirect Draw reads the GPU-written Instance Count, and the Vertex Factory uses original character IDs to find poses. Characters can share rendering resources while playing independent actions and selecting LODs. On mobile, examine Mesh LOD, Animation LOD, HZB, and the submitted set separately to understand why Draw Calls and GPU time change by different amounts.

Leave a Comment