DriftTexture · function

truncateJournalFrom

Forget every entry from frame onward. What a rollback owes the journal.

Explained in DriftTexture.

function truncateJournalFrom(journal: OverlayJournal, frame: number): number
import { truncateJournalFrom } from '@driftengine/texture';

Parameters

ParameterTypeDescription
journalOverlayJournal
framenumber

In depth

Entries are recorded in frame order, so this is a truncation rather than a filter — and where they are not, the scan below still removes exactly the right ones.