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
Apparently that Sleep is there because A-Train would spawn a thread that looped over XMPGetPlaybackController forever, but in MGS2's case it's calling XMPGetPlaybackController from the main thread, and I guess making main thread sleep is a bad idea...
(E: MGS3 also has the same issue calling it from main thread, but in MGS3 case it just reduces framerate + slows down gameplay, not as major as MGS2)
Maybe there's a check we can add so it only sleeps if it's outside main thread?
IIRC wasn't A-Train one of the first games to run on Xenia too? I wonder if it's behavior has changed at all since then, maybe a Sleep here is unneeded now.
The text was updated successfully, but these errors were encountered:
emoose
added a commit
to emoose/xenia
that referenced
this issue
Feb 1, 2021
As noted at xenia-project/game-compatibility#154 (comment), removing the Sleep(10) call from XMPGetPlaybackController fixes issues with MGS2 taking 5-10 minutes to load, and fixes the rapid flashing during menus/gameplay.
Apparently that Sleep is there because A-Train would spawn a thread that looped over XMPGetPlaybackController forever, but in MGS2's case it's calling XMPGetPlaybackController from the main thread, and I guess making main thread sleep is a bad idea...
(E: MGS3 also has the same issue calling it from main thread, but in MGS3 case it just reduces framerate + slows down gameplay, not as major as MGS2)
Maybe there's a check we can add so it only sleeps if it's outside main thread?
IIRC wasn't A-Train one of the first games to run on Xenia too? I wonder if it's behavior has changed at all since then, maybe a Sleep here is unneeded now.
The text was updated successfully, but these errors were encountered: