VICTORY_TABLED_REREAD=1: a table read takes out a slot written after its frame's first read (off)
A slot draws read through a table leaves the queue of textures picked by index at its first table read of a frame only (`tabled_in`, once per slot and frame; and the draws of a recording tell of a record once, `Listed::tabled`). The title rewrites tables' slots while it records: a slot written after that read is queued due `TABLED_GRACE` (8) frames on, the draws that read it later in the same frame leave it there, and the pass takes it 8 frames later and finds it uploaded by those draws or nothing to do: 17,000-58,000 slots in 5 s of a cutscene (coolfox-20261126-223059, analysis 6.6; "read through tables" and much of "nothing to bring up to date" in the pass's split line). With the switch, such a later read takes the slot out when the queue's marks (b5b7806) say it holds it, a lock-free look (without the marks it does nothing: every read would take the lock), and the recording's gate lets a slot the queue holds through, so the draw also makes the title's slot in place as at a first read (`mirror_after`). Counted in the lock line: slots taken out by a table read after the first of their frame, since the start. Off by default (not behaviour-neutral): a shader that picks such a slot by index then sees what the draw made of it at once, not what the pass makes 8 frames later; that lateness is a candidate of the flicker at scene loads (analysis 6.12). Test: written after its frame's first read, a slot waits for its grace frames; a later read takes it out with the switch only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
abf1020d25
commit
8625c3a00b
3 files changed
+89
-5
No files matched your search
@@ -4417,9 +4417,15 @@ impl State {
|
||||
}
|
||||
}
|
||||
}
|
||||
// (Told once per record and recording; with
|
||||
// `VICTORY_TABLED_REREAD=1` also of a slot the queue
|
||||
// holds again since: written after its first read.)
|
||||
if let Some(title) = title_first
|
||||
&& listed.texture
|
||||
&& listed.tabled != Some((title + k, kind.is_some()))
|
||||
&& (listed.tabled != Some((title + k, kind.is_some()))
|
||||
|| (crate::descriptor::host::tabled_reread()
|
||||
&& kind.is_some()
|
||||
&& host.texture_slot_queued(title + k)))
|
||||
{
|
||||
listed.tabled = Some((title + k, kind.is_some()));
|
||||
host.texture_slot_tabled(title + k, kind.is_some());
|
||||
|
||||
Reference in new issue
Block a user