Playing geometry caches

Play a .gcache with the GeometryCache component, control it from Visual Scripting or C++, drive it from a cutscene, and tune streaming.

Last updated Dec 4, 2026Version 1.1.0

The GeometryCache component plays a geometry cache asset. Place a .gcache in the level and the editor creates an actor with the component.

Properties

PropertyMeaning
Geometry CacheThe .gcache asset
Play On StartStart playing when the level starts
LoopThe last frame blends into the first
Play RateSpeed multiplier; negative plays backwards
Start TimeWhere playback begins and where Stop returns to, in seconds
Play In EditorPlays in the edit world without pressing Play
Cast Shadows, Receive Shadows, Light ChannelsAs on a mesh
Motion BlurWrites per-vertex velocity for temporal anti-aliasing and motion blur; off draws the object transform only
Material SlotsOne material per material section of the cache

Control from Visual Scripting and C++

The geometry cache library exposes PlayGeometryCache, PauseGeometryCache, StopGeometryCache, SetGeometryCacheTime, GetGeometryCacheTime, GetGeometryCacheDuration, GetGeometryCacheFrameCount, SetGeometryCachePlayRate, SetGeometryCacheLooping, IsGeometryCachePlaying and SetGeometryCacheAsset. Each takes the actor. The actor's component class has Play, Pause, Stop and SetPlaybackTime, and the events OnFinished and OnLooped.

Cutscenes

The geometry cache actor has an Interp property, PlaybackTime. Key it on a Sequencer actor property track and turn on DrivePlaybackTime: the cache then pauses and shows the frame at that time, so scrubbing the sequence scrubs the cache.

Streaming

Chunks decode on the background thread pool. A playing cache decodes ahead of the playhead; if a chunk is late the last frame stays on screen and the stall is counted. A paused or scrubbed cache decodes its chunk at once.

Console variableDefaultMeaning
gcache.PrefetchChunks2Chunks decoded ahead of the playhead
gcache.CacheBudgetMB64Decoded chunks kept per cache; the least recently used go first
gcache.UsePooledMesh0Upload constant-topology frames through the shared dynamic mesh pool
gcache.SyncDecodeOnSeek1Decode a paused or first frame immediately
Note

A cache with variable topology always uses the shared dynamic mesh pool, because the vertex count changes.

Engine sources

This page describes behavior implemented in these files of the engine repository, checked against commit 791d08149.

  • Engine/Source/Gameplay/SceneTypes/Api/SceneTypes/Components/GeometryCacheComponent.h
  • Engine/Source/Gameplay/SceneTypes/Api/SceneTypes/GeometryCachePlayback.h
  • Engine/Source/Gameplay/Game/Api/Game/MGeometryCacheComponent.h
  • Engine/Source/Gameplay/Game/Api/Game/MGeometryCacheStatics.h
  • Engine/Source/Gameplay/Game/Api/Game/AGeometryCacheActor.h

Page feedback

Was this page helpful?