Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

engine/audio: lazy load audio samples #11

Merged
merged 1 commit into from
Jul 27, 2024
Merged

engine/audio: lazy load audio samples #11

merged 1 commit into from
Jul 27, 2024

Conversation

rr-
Copy link
Contributor

@rr- rr- commented Jul 23, 2024

Resolves LostArtefacts/TR2X#114 – delays the transcoding of the samples to mixer's format until we actually need to play the given sample for the first time. Waiting for @Richard-L to verify if this approach is fast enough to not cause audible problems in form of clicks or unexpected lags.

@rr- rr- requested review from a team, eikehein, lahm86 and walkawayy and removed request for a team July 23, 2024 21:02
Copy link
Contributor

@walkawayy walkawayy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work for me with no issues. But I'm not on a potato PC.

It seems like I still get slight lag when starting a new game or load a game, but I am also running the SW renderer and it's a mess. So it might just be from that.

Copy link
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on ~12 year-old machine (Intel i5-2320/Nvidia GT 610) and didn't find any issues.

@rr- rr- merged commit 43cfa6d into main Jul 27, 2024
2 checks passed
@rr- rr- deleted the lazy-load-audio-samples branch August 31, 2024 13:15
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TR2X bug: Game doesn't start instantaneous after Load Game or New Game
3 participants