Texture queue census: slots waiting for a look again are not waiting for their memory
The census counted a slot uploaded whole and waiting for its looks again
(RECHECK_FRAMES 4, 12, 40, 120, 400 frames: in the queue up to 576 frames
after its upload) as "waiting for their memory", and its old write as "the
oldest". In coolfox-20261126-223059 at 17:02:04 the queue line said 19,277
waiting for their memory when the looks that had found memory not there
numbered 1,700 in the whole run (17:01:45: 6,842 vs 104; 17:01:59: 19,023 vs
471): nine in ten or more of them were uploaded textures waiting for a look
again, not streaming. They are counted apart now ("uploaded whole and waiting
to be looked at again"), and "the oldest" is of slots not uploaded yet.
A new 5-second line says how late first uploads are: slots served for the
first time at their first look, with the frames they had been due before the
pass took them (the pass's own lateness: its time cap), and slots served
after their memory was found not there, with the frames since their write
(streaming: mapping that came late).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
36c4c3746c
commit
c1d1b4ee76
3 files changed
+100
-15
No files matched your search
@@ -8972,13 +8972,14 @@ impl Meter {
|
||||
);
|
||||
crate::tiles::status();
|
||||
{
|
||||
let [queued, due, away, partly, oldest] =
|
||||
[0, 1, 2, 3, 4].map(|i| crate::draw::HEAP_TEXTURES_QUEUE[i].load(Ordering::Relaxed));
|
||||
let [queued, due, away, partly, oldest, again] =
|
||||
[0, 1, 2, 3, 4, 5].map(|i| crate::draw::HEAP_TEXTURES_QUEUE[i].load(Ordering::Relaxed));
|
||||
let [same, parts, tails] =
|
||||
[0, 1, 2].map(|i| crate::draw::HEAP_TEXTURES_PARTLY[i].load(Ordering::Relaxed));
|
||||
tracing::info!(
|
||||
"textures picked by index, the queue: {queued} slots, {due} of them due (the oldest written {oldest} frames ago), \
|
||||
{away} waiting for their memory, {partly} uploaded in part; since the start: {} slots found uploaded already by \
|
||||
"textures picked by index, the queue: {queued} slots, {due} of them due (the oldest not uploaded yet written \
|
||||
{oldest} frames ago), {away} waiting for their memory, {partly} uploaded in part, {again} uploaded whole and \
|
||||
waiting to be looked at again; since the start: {} slots found uploaded already by \
|
||||
the draws that read them through tables, {} writes of tables' slots (due some frames later), {} slots taken out \
|
||||
as read through a table, {parts} uploads of textures not all mapped ({tails} of them without their first page), \
|
||||
{same} looks that found no more mapped; {} slots made stale by a newer view of other memory there, \
|
||||
@@ -9025,6 +9026,20 @@ impl Meter {
|
||||
crate::draw::HEAP_TEXTURE_BYTES.load(Ordering::Relaxed) >> 20
|
||||
);
|
||||
}
|
||||
let served = crate::descriptor::host::SERVED.each_ref().map(|n| n.swap(0, Ordering::Relaxed));
|
||||
if served[0] + served[3] > 0 {
|
||||
tracing::info!(
|
||||
"textures picked by index served for the first time in the last 5 seconds: {} at their first look, \
|
||||
{:.1} frames after they were due ({} at most: the pass's own lateness), {} after their memory was \
|
||||
found not there, {:.1} frames after their write ({} at most)",
|
||||
served[0],
|
||||
served[1] as f64 / served[0].max(1) as f64,
|
||||
served[2],
|
||||
served[3],
|
||||
served[4] as f64 / served[3].max(1) as f64,
|
||||
served[5]
|
||||
);
|
||||
}
|
||||
if all > 0 || parts[7] > 0 {
|
||||
let [queue, records, prints, ahead, shown, whole, checks, before] = parts;
|
||||
let [n_frame, n_early, n_bake, t_frame, t_early, t_bake, at_time, at_bytes] = passes;
|
||||
|
||||
Reference in new issue
Block a user