mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 07:09:57 -04:00
Make a slot's new texture at once when the slot is showing another one.
Ocarina streams its textures by detail level: while the player moves it registers about 32 pool slots with their next level every four or five frames. A pool refresh made 16 of them and wrote the stand-in into the set for the rest until its next round; the set is read as it is when its submission goes to the queue, so an object whose slot was among the rest could be drawn grey for a frame. A player's recording shows 1,525 such slots in 600 frames, each with its texture made later in the same frame. A slot whose entry in the set is a texture's view when it is looked up now has its texture made by that lookup, beside the count budget and the frame's creation time, 64 of them a present; pool_shown_first = 0 leaves them to the budget. The flight recorder also notes a slot that still had no picture when its submission ended. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -157,7 +157,7 @@ static void copy_events(DumpJob *j, uint64_t first) {
|
||||
}
|
||||
|
||||
static const char *const tex_kind_names[FLIGHT_TEX_N] = {"new", "up", "reup", "release", "takeback", "drop", "bytes",
|
||||
"reg", "blank", "toblank"};
|
||||
"reg", "blank", "toblank", "blanksub"};
|
||||
|
||||
// <dir>/events.tsv: one line per texture event of the dump's frames (flight_tex).
|
||||
static void write_events(const DumpJob *j) {
|
||||
@@ -192,10 +192,11 @@ static void write_events(const DumpJob *j) {
|
||||
static const char *const was[4] = {"an unused slot", "the slot named another descriptor at this storage",
|
||||
"the slot named other storage", "the slot named a finalized texture"};
|
||||
snprintf(detail, sizeof detail, "slot %u: %s", e->us, was[e->detail & 3]);
|
||||
} else if (e->kind == FLIGHT_TEX_TOBLANK) {
|
||||
} else if (e->kind == FLIGHT_TEX_TOBLANK || e->kind == FLIGHT_TEX_BLANKSUB) {
|
||||
static const char *const bit[] = {"finalized", "own entry", "released", "superseded", "overwritten", "uploaded",
|
||||
"storage readable", "held out", "CPU-written", "GPU-owned", "retiring"};
|
||||
int o = snprintf(detail, sizeof detail, "slot %u lost its picture:", e->us);
|
||||
int o = snprintf(detail, sizeof detail, e->kind == FLIGHT_TEX_TOBLANK ? "slot %u lost its picture:"
|
||||
: "slot %u had no picture when its submission ended:", e->us);
|
||||
for (int b = 0; b < 11 && o < (int)sizeof detail - 20; b++)
|
||||
if (e->detail & 1u << b) o += snprintf(detail + o, sizeof detail - (size_t)o, " %s;", bit[b]);
|
||||
} else if (e->kind == FLIGHT_TEX_BLANK)
|
||||
|
||||
Reference in New Issue
Block a user