DriftTexture · function
truncateJournalFrom
Forget every entry from frame onward. What a rollback owes the journal.
Explained in DriftTexture.
function truncateJournalFrom(journal: OverlayJournal, frame: number): numberimport { truncateJournalFrom } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
journal | OverlayJournal | |
frame | number |
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.