box86 icon indicating copy to clipboard operation
box86 copied to clipboard

Corrupted audio and graphical glitches on GTA IV when using the dynamic recompiler

Open Grima04 opened this issue 4 years ago • 0 comments

When running GTA IV on box86 with Wine 6.0 upstream from PlayOnLinux with the dynarec enabled, the game suffers from corrupted audio during the boot and loading screen. Furthermore, the graphics ingame are partially broken, causing everything to be rendered black at certain camera angles except the skybox and sometimes everything turns black (even the minimap). When ingame, the sound also completely stops working.

When I launch GTA IV with the dynarec turned off, everything seems to work fine though. The sound plays normally (although a bit choppy, probably due to low CPU emulation speeds when using the interpreter) and the graphics are fine as well.

I am performing the tests on an Nvidia Jetson Xavier NX running Ubuntu 20.04 LTS as the main OS (and in an armhf chroot with box86). I am using virgl for 3D acceleration since Nvidia doesn't provide armhf GPU drivers (that is why the game runs like a slideshow) but virgl isn't the cause of the graphics problems since it works fine when using the box86 interpreter.

I have also uploaded a few videos to show the issues:

  • Using the dynarec (loading screen and ingame sequence - Warning: the loading screen produces ear rape sounds starting at 1:04): https://youtu.be/tf-FtB1lnSQ
  • Using the interpreter (loading screen): https://youtu.be/C06GHRr81ow
  • Using the interpreter (ingame): https://youtu.be/Geq_7L2krAk
  • This is how the loading screen normally sounds (just the first video I found on YT): https://www.youtube.com/watch?v=xh40QxwZz7Q

Furthermore, I also made a log with BOX86_DYNAREC_DUMP=2. Maybe it contains some useful information: GTAIV-Dynarec-Dump.zip

Is there something else I could do to provide more information / data on the issue?

Grima04 avatar Aug 03 '21 17:08 Grima04