Repository navigation
Descriptors: textures picked by index are kept up to date where the heap has no write watch (VICTORY_HEAP_SYNC_MARKS) - #73
Conversation
|
Tried on our RX 7900 GRE under Proton, in town (runs 389-390, two runs with
So we don't merge it for now. I'm leaving the PR open as a lead. If you have a place or time of day where the gap shows reliably, we can run it there. |
… 2's marks where the write watch has no tracker (VICTORY_HEAP_SYNC_MARKS=0: not) Under Wine with port 1 the title's view heap has no watch tracker and the sync passed it over: a slot shaders pick by index kept what it showed before. All plants were missing for a frame, 1.3 frames in 1,000, and at night the exposure then pulsed. Of the marked slots only those that hold a texture view no draw's table read lately are made, 1,000-2,000 a frame of 127,000: 1 ms of waiting a frame in a release build (all of them: 3-4).
bab7b06 to
e5a307e
Compare
|
Thanks for running it. I've pushed a different version: it makes only the texture views picked by index, which is what the gap turned out to be about, and skips the draws' own tables before reading them. The description has the counts per kind of record and the cost. It makes sense that the town walk by day didn't show it. The gap is one frame, mostly small, and between camera turns it disappears in the noise. The place that gives it every time here is in the description (Jason's deck at night, idle cameras), with how I count it. If you can't see it there either, I'd be curious whether your line differs from mine somewhere else, since the 0 slots told are the same on both. |
With port 1 under Wine (
VICTORY_PORT_CONSTANTS=1,VICTORY_PORT_HOME=1) the title's view heap lies in the private home pages.watch::trackcan't cover those, soHeap::writtenisNoneandsync_heapsskips the heap without saying anything (renderer port 2 ... 0 slots told ... 0.0 takings). A slot shaders pick by index then keeps what it showed before.On my line that shows as all plants vanishing for a single frame now and then. At night the street lights behind them show for that frame, the exposure reacts and the picture pulses darker.
New version since the first one: it no longer makes every record. Of the slots port 2's marks tell (and the fallback's pages) it makes only those that hold a view of a texture object, or of an object that is gone, and that no draw's table read lately. That is 1,000-2,000 records a frame of about 127,000 marked. Slots of draws' tables are skipped before they are read.
VICTORY_HEAP_SYNC_MARKS=allmakes every record as the first version did,0leaves the heap out as before. A/B-able.How I got to textures: every frame kept for 170 s from one save, one-frame outliers counted, all in diagnostics builds:
Cost in a release build, same place, the submitting thread's wait for the sync: about 1 ms a frame, against 1.6-2.0 for texture records through the old path and 3-4 for everything. Frame rate 26.1 with it against 25.8 and 26.5 without (the other runs of that set were disturbed by other load).
Where it shows reliably for me: at night on the deck of Jason's house, standing still until the idle cameras start cycling. Trees across the water and the plants by the deck are in nearly every shot, and I get 1 to 1.5 frames in 1,000. It is a small part of the picture in most of them, so the pop watch's blip count in a moving town walk would drown it; I kept all frames (
VICTORY_POP_ALL=1) and looked for blocks that differ from both neighbours while the neighbours agree.