Xenia: APU timing and hangs

Created on 29 Sep 2017  路  10Comments  路  Source: xenia-project/xenia

I think what games as NFS MW, Crash Mind Over Mutants, Mortal Kombat vs DCU crashes due to sound module.
Example NFS MW works without critical errors if make speed-up 4x, but if the process breaks the sound then game works even at normal speed (x1) NFS_MostWanted_YouTube
Crash MoM crashes on loading screen where the feet run and the sound of footsteps can be heard, but passed if speed-up 4x
MKvsDCU crashes too and after the application is closed due to an error a few more seconds work (visual part)
These games behave similarly when an error occurs for both api's (OGL and Vulkan)
Can turn off the sound through the command as --gpu=gl4? (or tell me where it can be disabled in the source), then I would test some games in more detail.

apu bug

All 10 comments

There is --apu=nop to disable the xaudio2 audio driver.

@maxton Thanks!
Upd. Hmm, i tried with key --apu=nop, games even not start (any games)

desktop screenshot 2017 09 30 - 21 55 18 76
--apu=nop gives this error message on every game I tested(NFS MW, SWTFU Demo, Doom(classic))

If this problem would be fixed, it'd fix a lot of problems and possibly raise some compatibility ratings(for example, this is the only problem that prevents NFS MW to be state-playable)

At the moment --apu=nop doesn't work because NopAudioSystem::CreateDriver returns STATUS_NOT_IMPLEMENTED (which propagates back into XAudioRegisterRenderDriverClient, and is promptly ignored by games).

List games with this trouble (which i know):

  • Mortal Kombat vs DCU
  • Crash Mind Over Mutant and Crash of the Titans
  • NFS Most Wanted and NFS Carbon
  • Dante's Inferno
  • Dead Space
  • Hellboy the since of evil
  • Disney / Pixar's UP: The Game
  • maybe Skate series games too (not sure. but if use x4 speedup then can go almost to ingame)
  • maybe Kameo elements of power too (not sure, but if use speedup on loading screen before main menu then much more chances get ingame)
    p.s. After some updating, this problem became less pronounced (more time to crash, and a slightly different sound during the error), but still happens stably.

Please check if this has been fixed with the latest official build (which includes PR #1509) and edit the list accordingly.

Tested NFS Most Wanted (2005) and NFS Carbon XBLA Demo
Neither of these got their CPU timing issues fixed

Tested on https://github.com/xenia-project/xenia/commit/922f1f220a2712eb1a705daea2cd4a380408fa18

Tested NFS Most Wanted (2005) and NFS Carbon XBLA Demo
Neither of these got their CPU timing issues fixed

Tested on 922f1f2

If timing issues persist try setting clock_no_scaling and clock_source_raw to true.
(The later may not be available on all systems)

image
You were right, the latter is not available on all systems
Edit: I have a i5-3570

Was this page helpful?
0 / 5 - 0 ratings