class

FRewindBuffer

FRewindBuffer — time rewind as a gameplay feature: a ring of saved states, one every 1/captureHz seconds, holding the last seconds of play within a memory budget, any of which can be made the present again. It saves and restores through the same IRollbackGame a rollback session uses, so a world that rolls back rewinds, physics state included.

Module
Game
Header
#include "Rollback/RewindBuffer.h"
Namespace
Mowo

A rewind lands on a captured moment, not between two: the newest capture at least as old as asked, or the oldest one when the buffer holds less. That capture stays in the buffer, so rewinding again goes further back.

Constructors

SignatureNameDescription
explicit FRewindBuffer(IRollbackGame& game)FRewindBuffer

Public functions

ReturnsNameDescription
voidSetSettings
const FRewindSettings&GetSettings
boolTickMoves the buffer's clock and captures when one is due; true when it did.
voidCaptureNow
floatRewindSeconds actually rewound; 0 when nothing is held.
voidClear
floatGetTime
floatGetAvailableSeconds
uint32_tGetCount
uint64_tGetBytes
uint32_tGetRewindCount

Function details

FRewindBuffer

C++
explicit FRewindBuffer(IRollbackGame& game)

SetSettings

C++
void SetSettings(const FRewindSettings& settings)

GetSettings

C++
const FRewindSettings& GetSettings() const

Tick

C++
bool Tick(float deltaTime)

Moves the buffer's clock and captures when one is due; true when it did.

CaptureNow

C++
void CaptureNow()

Rewind

C++
float Rewind(float seconds)

Seconds actually rewound; 0 when nothing is held.

Clear

C++
void Clear()

GetTime

C++
float GetTime() const

GetAvailableSeconds

C++
float GetAvailableSeconds() const

GetCount

C++
uint32_t GetCount() const

GetBytes

C++
uint64_t GetBytes() const

GetRewindCount

C++
uint32_t GetRewindCount() const
Generated from Rollback/RewindBuffer.h via game.json · Nov 5, 2026Version 1.0.0