TR2X icon indicating copy to clipboard operation
TR2X copied to clipboard

TR2X bug: Some music triggers cause game to freeze briefly

Open aredfan opened this issue 1 year ago • 5 comments

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

saves.zip

1

2

aredfan avatar May 02 '24 09:05 aredfan

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- avatar May 02 '24 09:05 rr-

@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.

aredfan avatar May 02 '24 10:05 aredfan

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- avatar May 02 '24 14:05 rr-

@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.

aredfan avatar May 02 '24 15:05 aredfan

No worries – thanks for clearing things up. We'll have to decode in a background thread but it's a significant effort.

rr- avatar May 02 '24 15:05 rr-