The six list threads looked every placed view of every table up in one map of 69,000 textures behind one lock
(a 60-byte key, a tree of some 16 levels): of their waits for contended locks, 55 % were under placed_texture
(profile list-d207; view_cast_serial alone 34 %), and in diagnostics builds the count of filler twins took a
second lock and a tree's search on most calls. texture_at now looks in one of 64 hash tables read under a shared
lock first, and fills it under the map's lock (never taken under a table's); the map keeps its resources for the
run, so what a table holds stays true. The twins are counted with it on only with LEONIDA_PLACED_TWINS=1. On unless
LEONIDA_PLACED_SHARDS=0; LEONIDA_AB can switch it.
AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): built; measured by turns next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guide asks an agent to measure, count over the corpus and quote where a
claim comes from. It does not ask for the two things that decide whether a
measurement means anything, and this repository's pull requests have been
reviewed with green tests that proved nothing as a result:
- a new test must be shown to FAIL without the fix - on main, or with only the
changed source reverted - and the reply should say which of the two was done;
- the instrument must be checked: rebuild before ctest after switching branches,
compare the change between branches rather than the file, and read the test's
own header before describing what it proves.
Written with an AI assistant.
main's new test mocks exactly two subprocess.run calls (the ftz32 probe and the
translator); unset, build.py's --lod-bias probe ran first and used one of them,
so the translator call raised StopIteration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merzleckeier measured on #2708 that LEONIDA_GUARD_HOT and LEONIDA_SKIP_TRY_A
stay off on both sides when only LEONIDA_AB names them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/rdna2spirv.py: main's float-only typed implicit sample (OpImageSampleImplicitLod)
is used only without --explicit-lod-bias; with the flag the Grad path still
scales the derivatives by the S# bias.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wave::sections() looks in a block for whole-wave sections: a saveexec of
every lane, the code under it, and the EXEC restore that ends it. When a
saveexec's restore was not in the block (it lies in a later one), the scan
stopped there (`let Some(end) = end else { break; }`), so every whole-wave
section later in the same block was missed and its reduction translated
the general way instead of as the section's shape. Such a saveexec is no
section; the scan now goes on past it.
Test: an_unmatched_saveexec_leaves_the_later_sections_of_its_block puts an
unmatched s_or_saveexec_b64 before the wave64 OR reduction the other tests
use and expects that section and its shape at index 1. On main it fails
("the section after an unmatched saveexec", left None).
Port of shh's fix and test in the sibling VIctory tree (TaynanGT/Vice-Tay
17e3e2c, GPL-3.0). The shader cache key covers leonida-shader/src, so
cached translations are made again.
Co-Authored-By: shh <marek8788@proton.me>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes over #1837: since #2028, main reports "time limit reached" only when
the run's seconds reach the limit, so the UTF-8 BOM case writes 60 s for a
60 s limit instead of 45; what it checks (both files parsed through the BOM)
is unchanged.
Co-authored-by: kirigayakazima <46666711+kirigayakazima@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Title memory has guard pages: stack guards, and guards the title sets up
itself. A copy, put or merge of title memory (safecopy, under the
write-catch handler in watch.rs) that touched one took
STATUS_GUARD_PAGE_VIOLATION, which clears the page's guard flag. The
handler sent every fault inside a copy to the copy's failing exit,
whatever the code, and nothing set the flag again: the page stayed an
ordinary page, so the title's next touch of it no longer raised the
guard fault it was set up for.
A guard fault inside a copy now sets the guard flag again on its page,
with the protection the page has, and fails the copy as before. The
re-arm checks that the page is still committed and that VirtualProtect
succeeds; a re-arm that fails, or a guard fault with no address, is
counted (NOT_REARMED) and the first one is logged. A guard fault outside
a copy still goes on to the next handler.
Tests: the source and destination cases for copy, put and merge (all four
fail on main with "...cleared the guard flag" / "the guard flag was
consumed"), and a_page_that_cannot_be_guarded_again_is_counted.
Port of zocram4cc's fix and tests in the sibling VIctory tree
(TaynanGT/Vice-Tay fa11650 and c277533, GPL-3.0).
Co-Authored-By: zocram4cc <79211006+zocram4cc@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Timelines of run d200: the frame comes out of the title's threads (22-30 ms a frame), its own Sleeps, our list
threads' calls and the host's Present more than out of the submitting thread; the card busy 96-99 % by our count.
LEONIDA_METER_BESIDE by turns (d202, d203): no change to the frame. Profile ahead-d201: the copies' spans are most
of the list ahead's own work.
AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11), Series X profile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sampled (run d201, the thread that records the list ahead of each frame): 54 % of its work is heap_buffer_pass
itself, and by line 81 % of that is making the copies' spans (SweepRanges::spans), 11 % setting the slots' ranges.
Each part's span held its copy (an Arc), and about every one of the 16 parts is made again each pass, so some 70,000
holds on copies other threads hold too were taken and let go a pass. A part's span now keeps a slot of the part that
shows the copy (a change that could leave that slot showing another copy or none makes the part stale, as before);
a pass takes one hold on each copy, which goes on into what it refreshes, and setting a slot takes none of its own.
AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): heap_range_tests (the spans kept by part
against every slot's, 600 random rounds) pass; the pass's time is measured in a standing run next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_tool_stdout_encoding.py asks it of every tool. d3d12_run_fps.py came
in with #2594 without it, which left that test red on main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NVIDIA (RTX 3090, driver 610.88) moves NEAREST mip selection to level 1 at
about +0.289, inside Vulkan's 0.25..0.5 range, so a single +0.3 already read
level 1 there (found by zmasi). +-0.26 stays under that on every driver, and
the bias counted twice (+-0.52) still crosses 0.5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Made in the present, on the line's thread the frame waits for, the lines of a second held that thread some 37 ms
once a second (a timeline of run d141: 16.4 ms of it in VirtualQuery for the copy counters' busiest ranges, the
rest the lines themselves). Now the present counts the frame, cuts the second and hands the rest to a thread named
leonida-meter (a line still waiting for it is joined to the next); the window's caption is still set from the
present. On unless LEONIDA_METER_BESIDE=0; LEONIDA_AB can switch it. After kylepelham/El1xr d7ff66ab
(VICTORY_RAMLINE_BESIDE: that fork's present spikes were its memory lines made in the present).
AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11): built; measured by turns next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs d187/d188 (latency.py over every presented frame, standing): median 351.9 ms with frame generation, 310.0 ms
without, the first moved frame the third presented after the key in both. Runs d189/d190 (-RayTracing): the deck's
shadows and the water look right, the frame 158-217 ms (79-267 ms of it on the card), so it stays off by default.
AI-assisted (Claude). Tested on an RTX 4060 Ti, driver 616.64 (Windows 11), Series X profile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launcher column saw one way of assigning of four, three kinds were wrong,
names read by turns through a constant, a function or asked_for! were missing,
and test modules with a brace in a raw string were cut short. measuring_fps.md
now says how to give LEONIDA_AB to the launcher and what GPU_TIMING and
PROFILE need.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
STARTED is counted at the start of a submission's preparation, before its
lists go to the queue, so while the submitting thread prepares one, that one
is among STARTED less FINISHED. 'sent' claimed more than the counter holds;
'started and not yet seen finished' is what it counts (review by
merzleckeier).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d3d12/docs/findings.md was reachable from d3d12/README.md alone, so a night of
runs repeated measurements it already holds. Index it, point AGENTS.md at it,
say how to measure (a switch by turns inside one run), and list the variables
the runtime names from its own sources: 415 of 669 were in no Markdown file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
And what a stable 30 frames shown with frame generation asks: 15 rendered, 66.7 ms a frame, against 71-79 now.
AI-assisted (Claude). Tested on an RTX 4060 Ti 16 GB, driver 616.64, Ryzen 5 7600X.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>