Commit Graph

4 Commits

Author SHA1 Message Date
Shokunin 08cf54a99a HD residency: bind the sidecar to the pack; bound the restage re-hash
- The .hdres sidecar (version 2) carries the pack's identity, a hash of its
  sorted replacement keys (hd_texture_pack_identity); a load with another
  pack is refused, as the docs say.
- The learned upload rectangles are bounded by area as well as count: a
  restage (load, rewind) re-hashes at most one VRAM's worth of words.
- gl_hd_texture_pack_test: residency is refused with a different pack;
  before the load a textured draw shows native artwork, after it the same
  draw shows the HD replacement and counts as an applied draw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:51:31 -07:00
Shokunin 6799806481 HD texture packs: re-admit learned uploads after a VRAM restage
Rewind and in-session savestate loads have no sidecar. Each Beetle-keyed
upload rectangle seen in the session is remembered (at most 256); after a
restage it becomes resident again only if the restored words still hash to
a replacement key, so the HUD keeps its replacement across loads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:48:04 -07:00
Codex 4af774e913 style: normalize HD texture source endings 2026-08-25 01:50:55 -07:00
Codex 98aaea953b runtime: add external HD texture pack core 2026-08-25 01:50:23 -07:00