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
| Signature | Name | Description |
|---|---|---|
explicit FRewindBuffer(IRollbackGame& game) | FRewindBuffer |
Public functions
| Returns | Name | Description |
|---|---|---|
void | SetSettings | |
const FRewindSettings& | GetSettings | |
bool | Tick | Moves the buffer's clock and captures when one is due; true when it did. |
void | CaptureNow | |
float | Rewind | Seconds actually rewound; 0 when nothing is held. |
void | Clear | |
float | GetTime | |
float | GetAvailableSeconds | |
uint32_t | GetCount | |
uint64_t | GetBytes | |
uint32_t | GetRewindCount |
Function details
FRewindBuffer
C++
explicit FRewindBuffer(IRollbackGame& game)SetSettings
C++
void SetSettings(const FRewindSettings& settings)GetSettings
C++
const FRewindSettings& GetSettings() constTick
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() constGetAvailableSeconds
C++
float GetAvailableSeconds() constGetCount
C++
uint32_t GetCount() constGetBytes
C++
uint64_t GetBytes() constGetRewindCount
C++
uint32_t GetRewindCount() constGenerated from Rollback/RewindBuffer.h via game.json · Nov 5, 2026Version 1.0.0