upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-27 16:50:23 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-27 16:50:23 -0500
commit4ad46cfc622f600509739bc7faf41ae19ee75041 (patch)
treef90712260947828aa67d54abcc16505c5ce2b5ae /runtime/src/thread_stacks.cpp
parent9df168ecbf1135228e59136d6b8ab954ca51cf9f (diff)
Descriptor tables' slots come back when the card has run a flight, and a refused table reaps finished flights before it waits
A flight's dynamic descriptor slots were given back at the end of its landing, after its copies back and read-backs (milliseconds a flight). Only the card reads them, so they are given back at the landing's start (host.rs release_flown_tables, in relay_land and in the settle without the relay). LEONIDA_TABLES_EARLY=0: at the end, as before. A table that finds no slots (draw.rs: tables, the root views' one-slot tables) asked again only after settle_for_fence, which under the relay waits, with the submission lock held, until every flight has landed. Now it first gives back the slots of the flights in the line the card has already run (release_finished_tables: no wait; taken under the line's lock, let go of after it) and asks again; only then does it wait. LEONIDA_SLOT_SETTLE=0 leaves the wait out (the table is refused and its draw dropped): aki-runtime runs that way, after measuring 90-120 ms frames against 55 with this wait and two others on (their handoff of 2026-11-27; which of the three it was is not isolated). Here the wait stays on by default, as before; the frame line now says how many tables a frame got slots the first way and how many waited ("tables without slots at first: ..."), so a run shows whether it ever happens. Not taken from the same commit: the ring split in regions by table size (descriptor/ring.rs). Leonida's ring is searched by per-thread leases of 512 slots over a bit set (XaviFortes 13e1f5e), so its tables do not interleave the way theirs did; "table: free slots apart" in the frame line says if that changes. Compute dispatches waiting for their pipeline (fork pull request 1312): not taken, one of the three waits above, and the launcher's LEONIDA_PIPELINE_WAIT_MS=10000 waits once a pipeline. Nothing of it has run in the game yet. Files: host.rs (the four functions above, two calls), draw.rs (three calls of host::table_slots, State::tables_taken + TablesHeld), list.rs (Detached::take_tables), drops.rs (the two counts, a test). From aki-gta6/aki-runtime d9d1341 (Aki-Developer), GPL-3.0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions