The world takes about 4.5 minutes to appear, and every translator change makes the next run cold #530

Open
opened 2026-11-28 01:02:30 +00:00 by LakshanSivakumar · 3 comments
LakshanSivakumar commented 2026-11-28 01:02:30 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T01:02:30Z.


What you see

Every run sits on a black or loading screen for about 4.5 minutes before the world shows. After any change to the shader translator the first run is much worse: the window stays black while it presents about one frame every 5 seconds.

What I know

  • The world's first frames appear at about +230 to +260 s (frame 1790 to 1860) on a 48 GB M-series Mac, Series S profile.
  • The shader translation cache is keyed by the translator's sources. Any change under crates/victory-shader makes the next run translate and compile everything again. One such run compiled 1,209 pipelines, none from the disk cache, before the picture settled.
  • Runs slow down a lot when the CPU is busy with other work. Nothing in the log says so.
  • With a cold cache the first world frame can take more than 30 s and trip the game's own watchdog (the exception at image+0x55e56f8).
  • The dstorage: a status entry is still pending warning appears 130 to 270 times per run during loading. I do not know if it costs time.

This makes testing a graphics fix slow: each try costs 7 minutes, of which 4.5 are loading.

What would help

  • A cache key that only changes for the shaders a translator change can affect, or a way to keep entries whose output is byte-identical.
  • A prewarm step that translates and compiles the world's shaders before the game starts (the prewarm pool exists; one run only prewarmed 1,024 shaders).
  • Finding what the 4.5 minutes go to when the cache is warm.

Related: #15, #334, #332.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6656991005 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/530). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-28T01:02:30Z. --- ### What you see Every run sits on a black or loading screen for about 4.5 minutes before the world shows. After any change to the shader translator the first run is much worse: the window stays black while it presents about one frame every 5 seconds. ### What I know - The world's first frames appear at about +230 to +260 s (frame 1790 to 1860) on a 48 GB M-series Mac, Series S profile. - The shader translation cache is keyed by the translator's sources. Any change under `crates/victory-shader` makes the next run translate and compile everything again. One such run compiled 1,209 pipelines, none from the disk cache, before the picture settled. - Runs slow down a lot when the CPU is busy with other work. Nothing in the log says so. - With a cold cache the first world frame can take more than 30 s and trip the game's own watchdog (the exception at `image+0x55e56f8`). - The `dstorage: a status entry is still pending` warning appears 130 to 270 times per run during loading. I do not know if it costs time. This makes testing a graphics fix slow: each try costs 7 minutes, of which 4.5 are loading. ### What would help - A cache key that only changes for the shaders a translator change can affect, or a way to keep entries whose output is byte-identical. - A prewarm step that translates and compiles the world's shaders before the game starts (the prewarm pool exists; one run only prewarmed 1,024 shaders). - Finding what the 4.5 minutes go to when the cache is warm. Related: #15, #334, #332.
Olima34 commented 2026-11-28 01:06:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:06:12Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231422154 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/530#issuecomment-7231422154). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:06:12Z. --- /claim
github-actions[bot] commented 2026-11-28 01:06:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T01:06:23Z.


Claimed by @Olima34. Open a draft pull request with Refs #530 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231424394 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/530#issuecomment-7231424394). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T01:06:23Z. --- Claimed by @Olima34. Open a draft pull request with `Refs #530` in its description within 24 hours, or the claim expires.
github-actions[bot] commented 2026-11-29 08:50:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-29T08:50:35Z.


The claim by @Olima34 has expired: no pull request referenced it within 24 hours. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7253367591 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/530#issuecomment-7253367591). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T08:50:35Z. --- The claim by @Olima34 has expired: no pull request referenced it within 24 hours. This issue is free to claim.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#530
No description provided.