Skip to content

feat(audio): allow lazy loading of AUDO chunk#326

Open
cobaltgit wants to merge 4 commits into
ButterscotchRunner:mainfrom
cobaltgit:lazy-audo
Open

feat(audio): allow lazy loading of AUDO chunk#326
cobaltgit wants to merge 4 commits into
ButterscotchRunner:mainfrom
cobaltgit:lazy-audo

Conversation

@cobaltgit

@cobaltgit cobaltgit commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

largely based on what that one Vita port is doing with the OpenAL backend, useful for platforms like the Vita that can't mmap the way POSIX and Win32 do

Also mmapping the audio groups (audiogroup*.dat) slightly saves memory

@cobaltgit
cobaltgit marked this pull request as ready for review July 17, 2026 15:07
@cobaltgit
cobaltgit requested a review from Un1q32 July 24, 2026 19:41
@Un1q32

Un1q32 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Where does the mmap audio groups thing happen? I can't see it. Am I a stupid illiterate chud who can't read code?

@cobaltgit

Copy link
Copy Markdown
Collaborator Author

The audio groups are data.wins here so we just pass the MAP_FILE mode to the parse options

@cobaltgit

Copy link
Copy Markdown
Collaborator Author

Well not sure what OpenAL does now so

@Un1q32

Un1q32 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Could you seperate the mmap audio groups thing into its own patch? I wanna see how much memory that saves on it's own.

@cobaltgit cobaltgit changed the title lazy AUDO + support for mmapping audio groups Lazy load AUDO Jul 24, 2026
@cobaltgit

Copy link
Copy Markdown
Collaborator Author

#352

@cobaltgit cobaltgit changed the title Lazy load AUDO perf(audio): allow lazy loading of AUDO chunk Jul 24, 2026
@cobaltgit cobaltgit changed the title perf(audio): allow lazy loading of AUDO chunk feat(audio): allow lazy loading of AUDO chunk Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants