TR2X bug: Some music triggers cause game to freeze briefly
Dev snapshot: 0.1.1-15-g19a94d0
When Lara crosses the music triggers marked in the screenshots below, the game freezes very briefly.
This issue is not present in 0.1.1
Shit, that's what we get for using single threaded audio decoding.
@aredfan what happens if you remove either audio/cdaudio.*, or music files? (Renaming the directories alone will suffice)
@rr-
- If I only use the music folder with all the separate soundtracks, there is no lag.
- If I only use the audio folder (cdaudio.dat and cdaudio.mp3), the lag happens.
Thanks. The results are a bit confusing to me. The game defaults to using music/ folder, which in the last message is said to be lag-free. Can you confirm if there was still lag present when you had both types of files available (in which case it should prioritize the music/ directory)?
@rr- Yep, the music folder takes priority on my setup too when both folders are present. There's no lag with this arrangement.
Actually, the reason I ran into this issue is because I used a TR2 disc re-release which doesn't come with a music folder, so I used Multi Patch which provides a audio folder instead.
I installed my Steam copy today to test your scenarios because it had both music and audio folders. I used the disc version before today because it was already installed on my PC. I can understand the confusion caused so I apologise for that.
No worries – thanks for clearing things up. We'll have to decode in a background thread but it's a significant effort.