You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah so this happens because the BASS library runs in the same thread as the game.
Meaning that if your storage is slow it can cause these kinds of issues (it's especially noticeable with online streams).
This entire music player needs a rewrite anyways so I don't think I can fix these issues right now. Maybe moving the playback to a separate thread could work.
xan1242
changed the title
XNFSMusicPlayer causes the game to halt for a split-second in the latest version
[All] Implement BASS stream creation on a separate thread to avoid lag
Aug 21, 2022
This is very noticeable once you add a frametime graph like MangoHUD. It's definitively visible on larger streams. Maybe it's caused by BASS_STREAM_PRESCAN flag, I'm not too sure, but the solution definitively is moving all music processing to a separate thread and only use the game thread for messaging.
I had tried the latest release of the XNFSMusicPlayer, but in-game without music, it just halts for a split-second.
The text was updated successfully, but these errors were encountered: