<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/src/buffer_va_index.h, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-25T20:30:51+00:00</updated>
<entry>
<title>Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)</title>
<updated>2026-11-25T20:30:51+00:00</updated>
<author>
<name>Moriz82</name>
<email>72836413+Moriz82@users.noreply.github.com</email>
</author>
<published>2026-11-25T20:30:51+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=9f98dcc617df5b21eb66b48a289914b551769029'/>
<id>urn:sha1:9f98dcc617df5b21eb66b48a289914b551769029</id>
<content type='text'>
Fall back to a dedicated buffer allocation when the shared arena fills.
Update console descriptors and resource backing, preserve pipeline cache
entries, and replay mesh records using bounded indirect arguments. Keep
scripted input available until read and cover the runtime and translator
paths with synthetic tests.

Co-authored-by: Plaaasma &lt;47513553+Plaaasma@users.noreply.github.com&gt;
Co-authored-by: ivanepsilondelta &lt;264061546+ivanepsilondelta@users.noreply.github.com&gt;
</content>
</entry>
<entry>
<title>[integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)</title>
<updated>2026-11-24T17:42:12+00:00</updated>
<author>
<name>Moriz82</name>
<email>72836413+Moriz82@users.noreply.github.com</email>
</author>
<published>2026-11-24T17:42:12+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=273b3bdf9d6e736442ad584ad464df6e86ee928b'/>
<id>urn:sha1:273b3bdf9d6e736442ad584ad464df6e86ee928b</id>
<content type='text'>
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.

Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.

Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.

Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.

No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.

Co-authored-by: Plaaasma &lt;47513553+Plaaasma@users.noreply.github.com&gt;
Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Make BufferVaIndex insertion atomic on allocation failure</title>
<updated>2026-11-23T21:29:23+00:00</updated>
<author>
<name>WebIdentity1</name>
<email>212448219+WebIdentity1@users.noreply.github.com</email>
</author>
<published>2026-11-23T19:59:56+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=08d91830efa1efc448498357ab9da2b9d3a055af'/>
<id>urn:sha1:08d91830efa1efc448498357ab9da2b9d3a055af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime: buffer_at prefers an aliasing buffer that holds the whole view</title>
<updated>2026-11-22T21:50:57+00:00</updated>
<author>
<name>jsthope</name>
<email>68657498+jsthope@users.noreply.github.com</email>
</author>
<published>2026-11-22T21:50:57+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b8273c0e391720b81426bc77dc310d04b3c65157'/>
<id>urn:sha1:b8273c0e391720b81426bc77dc310d04b3c65157</id>
<content type='text'>
With placed buffers aliasing in one heap, a large buffer B and a small S
inside it, a vertex or index view that starts in S and runs past its end
resolved to S, the closest start below the VA, and buffer_at cut it at
S's end: the rest read as out of bounds, though B holds all of it. Found
by traeb0n in the review of #2823.

BufferVaIndex::find takes the bytes the lookup needs and returns, among
the ranges that hold the VA, the closest start (larger ID on a tie) that
also holds all of them; when none does, the closest that holds the VA,
as before. Without overlaps the first range it looks at is still the
answer. With a fallback found, the walk stops once no range can hold all
the bytes, bounded by the longest live range. buffer_at passes the
requested size.

buffer_va_index_test checks views that fit in the small buffer, run past
it into the large one, run past every range and have size 0, and three
quarters of the random-table lookups now name a view of up to 32 KiB,
checked against a scan with the same rule.
</content>
</entry>
<entry>
<title>runtime: BufferVaIndex's longest-range bound follows the live ranges</title>
<updated>2026-11-22T19:09:00+00:00</updated>
<author>
<name>jsthope</name>
<email>68657498+jsthope@users.noreply.github.com</email>
</author>
<published>2026-11-22T19:09:00+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=111b634c21e6fd9e4e05d1d878ba473ddbcfd091'/>
<id>urn:sha1:111b634c21e6fd9e4e05d1d878ba473ddbcfd091</id>
<content type='text'>
The bound that stops a lookup's walk only grew: once a large buffer was
freed, every later miss still walked back as far as that buffer had
reached. With 20 000 buffers of 256 bytes, a 1 GiB range added then
removed left a miss past the last buffer at 250-600 us instead of ~50 ns
(found by @padhossein in review of #2823).

A multiset of the indexed sizes keeps the bound at the longest range
indexed now; insert and erase stay O(log n), find is unchanged. Inserting
the same (va, id) again replaces its size instead of leaving the old one
in the bound.

buffer_va_index_test checks the bound after erases (same sizes and a
smaller re-registration included), against the longest live range in all
200 random tables, and times the review's miss-after-free case.
</content>
</entry>
<entry>
<title>runtime: BufferVaIndex, an ordered VA -&gt; buffer lookup</title>
<updated>2026-11-22T18:17:52+00:00</updated>
<author>
<name>jsthope</name>
<email>68657498+jsthope@users.noreply.github.com</email>
</author>
<published>2026-11-22T18:00:08+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=454ae0637c9ed45131e031e71cc7d912e0b24ac8'/>
<id>urn:sha1:454ae0637c9ed45131e031e71cc7d912e0b24ac8</id>
<content type='text'>
Buffers' VA ranges kept in a std::map by first VA: a lookup is a binary
search, walking down from the nearest start only while a range can still
reach the VA (bounded by the longest range), so aliasing placed buffers
that overlap still resolve, to the range that starts closest below the VA
(the larger ID on a tie).

buffer_va_index_test checks edges, overlapping and nested ranges,
re-registration and erase, then 200 random tables against a linear scan
with the same rule, and prints the lookup time against the scan over every
resource that buffer_at does today (--bench for 50k and 100k resources).
</content>
</entry>
</feed>
