[PR #2145] tools: skip Ogg Opus outputs that already exist, so a stopped audio e… #2150

Open
opened 2026-11-26 21:20:13 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2145
Author: @fiestorra
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: awc-skip-existing


📝 Commits (1)

  • 99de22f tools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes

📊 Changes

3 files changed (+54 additions, -9 deletions)

View changed files

📝 make_game.py (+3 -1)
📝 tests/test_awc_opus.py (+23 -0)
📝 tools/awc_opus.py (+28 -8)

📄 Description

…xport resumes

awc_opus.py repacked every bank on every run, so a stopped assets run redid the whole Ogg Opus step: on one machine 664,446 .ogg files were already written and the restart began at bank 0. The stage marks the step done only after it finishes, so there was no per-bank resume.

--skip-existing leaves an output that exists alone before packing a music channel or writing a stream's .ogg/.wav, and make_game.py passes it in the audio step. The staged writer publishes atomically, so an existing file is always complete.

Measured on a 1 MB bank with 29 outputs: first export 0.8 s, second with the flag 0.23 s and 0 files rewritten, while the same export without the flag does rewrite them. tests/test_awc_opus.py covers that with the control.

Claimed in the coordination issue as:

Depends on:

Fixes:

What and why

Tested

GPUs tested:

AI-assisted:

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2145 **Author:** [@fiestorra](https://github.com/fiestorra) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `awc-skip-existing` --- ### 📝 Commits (1) - [`99de22f`](https://github.com/ubiquitarianism/leonida/commit/99de22f4ea427a9b06dfd7deb90f7c1d14d7e8a1) tools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes ### 📊 Changes **3 files changed** (+54 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+3 -1) 📝 `tests/test_awc_opus.py` (+23 -0) 📝 `tools/awc_opus.py` (+28 -8) </details> ### 📄 Description …xport resumes awc_opus.py repacked every bank on every run, so a stopped assets run redid the whole Ogg Opus step: on one machine 664,446 .ogg files were already written and the restart began at bank 0. The stage marks the step done only after it finishes, so there was no per-bank resume. --skip-existing leaves an output that exists alone before packing a music channel or writing a stream's .ogg/.wav, and make_game.py passes it in the audio step. The staged writer publishes atomically, so an existing file is always complete. Measured on a 1 MB bank with 29 outputs: first export 0.8 s, second with the flag 0.23 s and 0 files rewritten, while the same export without the flag does rewrite them. tests/test_awc_opus.py covers that with the control. Claimed in the coordination issue as: <!-- the item ID from the open "Coordinating who works on what" issue, for example TEST-17, or a link to your claim --> Depends on: <!-- #N for every pull request this one builds on or conflicts with (see AGENTS.md; the coordination issue lists the open pull requests); delete the line if it builds on none and conflicts with none --> Fixes: <!-- #N for each issue this closes (GitHub closes it on merge); delete the line if it closes none --> ### What and why <!-- What this changes and the problem it solves. --> ### Tested <!-- What you ran and on which GPU and driver (CONTRIBUTING.md). For the shader translator: how many shaders translate and pass spirv-val, before and after. --> GPUs tested: <!-- vendor, model, driver and OS of each GPU the GPU tests ran on, or n/a --> AI-assisted: <!-- yes or no (AGENTS.md asks a coding agent to say so) --> ### Checklist - [ ] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [ ] One topic; follow-up work goes in a new pull request. - [ ] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#2150
No description provided.