[SOLVED] Crash Bandicoot N. Sane Trilogy via Docker/Flatpak
Posted: Sun Mar 03, 2019 12:08 am
Hi,
for quite some time, I've been successfully running Steam in its own docker container with Ubuntu 18.04 as I don't fully trust it or its games and would like to keep my main system straight 64bit without the 32bit multilib mess.
CSGO, DOOM 2016, Wolfenstein 2, and Rise of the Tomb Raider all run perfectly with FPS well above 100 (maxed out by my 120Hz displays).
Crash Bandicoot, however, has given me nothing but trouble. According to its protondb page, it's supposed to run near flawlessly for about every current system. Whatever settings I change or tweaks I perform, nothing gets me good performance. The framerate is really unstable and generally too low for comfortable play (~10fps), but it spikes up to 60fps for half a second every now and then. Audio, on the other hand, has no issues whatsoever.
Things I've tried so far:
My system:
Looking into the running processes, the game exe consumes ~150% CPU and wineserver.exe does ~60%. Via strace, the game exe does virtually nothing and wineserver is doing tons of readv/writev (for the shaders to be compiled, I guess).
I'm at a loss. What else could I be looking into?
/edit: Updated to Proton 4.2 and everything is running as it should now, with 120fps and without hiccups. Going back to Proton 3.16 shows all the same symptoms still, but 4.2 reproducibly fixes it for me with an untouched Proton installation (no config changes necessary whatsoever).
for quite some time, I've been successfully running Steam in its own docker container with Ubuntu 18.04 as I don't fully trust it or its games and would like to keep my main system straight 64bit without the 32bit multilib mess.
CSGO, DOOM 2016, Wolfenstein 2, and Rise of the Tomb Raider all run perfectly with FPS well above 100 (maxed out by my 120Hz displays).
Crash Bandicoot, however, has given me nothing but trouble. According to its protondb page, it's supposed to run near flawlessly for about every current system. Whatever settings I change or tweaks I perform, nothing gets me good performance. The framerate is really unstable and generally too low for comfortable play (~10fps), but it spikes up to 60fps for half a second every now and then. Audio, on the other hand, has no issues whatsoever.
Things I've tried so far:
- Upgrade dockered Ubuntu 18.04 to 18.10
- Turn shader caching in Steam on/off
- Use Proton 3.16 instead of 3.16 Beta (3.16-7)
- Disable DXVK (falling back to wined3d)
- Play around with ESync
- set PROTON_FORCE_LARGE_ADDRESS_AWARE via Proton's user_settings.py
- disable DXVK's nvapi hack to not fake an AMD graphics card for the game
- start the game with -4kb or -4kf
- Set the CPU governor to performance instead of ondemand
- Move the game to an SSD
- Set the game to fullscreen, windowed, windows fullscreen, vsync on/off, motion blur on/off, low/mid/high/ultra presets, about every setting in the game, switch resolutions up and down (640x480 -> 1920x1080)
- turn KDE's compositor on/off
- turn GSync on/off, set my displays to anything between 60/100/120/144/180 Hz
- turn forced composition pipeline in Nvidia driver on/off
My system:
- AMD Threadripper 2950X
- Nvidia GeForce RTX 2080 Ti with proprietary drivers (around 413 when I bought the game, now 418.43; USE=X acpi driver gtk3 kms tools uvm -compat -multilib -static-libs -wayland)
- 32GiB RAM @3200MHz XMP
- Vanilla Kernel 4.20.12 (originally was 4.20.0) (config)
- fully updated ~amd64 system with OpenRC
Looking into the running processes, the game exe consumes ~150% CPU and wineserver.exe does ~60%. Via strace, the game exe does virtually nothing and wineserver is doing tons of readv/writev (for the shaders to be compiled, I guess).
I'm at a loss. What else could I be looking into?
/edit: Updated to Proton 4.2 and everything is running as it should now, with 120fps and without hiccups. Going back to Proton 3.16 shows all the same symptoms still, but 4.2 reproducibly fixes it for me with an untouched Proton installation (no config changes necessary whatsoever).