Terrible performance on Arch compared to Kubuntu

Questions about Wine on Linux
Locked
JonnyRobbie
Level 1
Level 1
Posts: 5
Joined: Tue Aug 18, 2015 3:05 pm

Terrible performance on Arch compared to Kubuntu

Post by JonnyRobbie »

My main system is Arch, but WINE has atrocious performance there. Multiple games (2D games like Touhou06, Nekopara and 3D games like Audiosurf) work, but with fps around unplayable 5-10 fps, the point is it's not my pc or intristic property of wine, because, when I try to boot to livecd of Kubuntu 14.04, apt-get wine1.7 and try that, the performace is absolutely fine and playable. How do I get better performance in Arch? Is there some weird dependency/package, or some hidden settings somewhere?

Code: Select all

$ uname -roms 
Linux 4.1.5-1-ARCH x86_64 GNU/Linux
$ wine --version
wine-1.7.49 (Staging)
$ pacman -Qi nvidia-340xx | grep Version
Version        : 340.76-14
$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 9800M GS/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.76
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3.0 NVIDIA 340.76
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 340.76 340.76
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00
OpenGL ES profile extensions:
$ pacman -Q | grep "nvidia\|wine"
lib32-nvidia-340xx-libgl 340.76-1
lib32-nvidia-340xx-utils 340.76-1
lib32-nvidia-cg-toolkit 3.1-4
nvidia-340xx 340.76-14
nvidia-340xx-libgl 340.76-2
nvidia-340xx-utils 340.76-2
nvidia-cg-toolkit 3.1-3
wine-mono 4.5.6-1
wine-staging 1.7.49-1
winetricks 20150706-1
$ lspci | grep VGA
08:00.0 VGA compatible controller: NVIDIA Corporation G94M [GeForce 9800M GS] (rev a1)
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by dimesio »

JonnyRobbie wrote:

Code: Select all

$ uname -roms 
Linux 4.1.5-1-ARCH x86_64 GNU/Linux
$ wine --version
wine-1.7.49 (Staging)
Wine-staging is not plain Wine. The Ubuntu packages aren't really plain Wine either, but they only have a handful of unsupported patches added, compared to hundreds in Wine-Staging.

Arch does build plain Wine packages, so the first thing I would try is that. If that does fix it, report the performance problem to Wine-Staging. If not, post terminal output from plain Wine.
JonnyRobbie
Level 1
Level 1
Posts: 5
Joined: Tue Aug 18, 2015 3:05 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by JonnyRobbie »

Plain arch packages didn't work either. That's actually the reason why I tried the staging version. But I've removed staging and installed plain wine. The performance is even worse. The output:

Code: Select all

err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
err:winediag:wined3d_dll_init The GLSL shader backend has been disabled. You get to keep all the pieces if it breaks.
fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
fixme:win:EnumDisplayDevicesW ((null),0,0x33f784,0x00000000), stub!
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
fixme:d3d:buffer_internal_preload Too many declaration changes or converting dynamic buffer, stopping converting
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by dimesio »

Code: Select all

err:winediag:wined3d_dll_init The GLSL shader backend has been disabled. You get to keep all the pieces if it breaks.
Why did you do that? What happens when you enable it?
JonnyRobbie
Level 1
Level 1
Posts: 5
Joined: Tue Aug 18, 2015 3:05 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by JonnyRobbie »

That was part of desperate search through various forums and finding some tweaks. Enabling it back again actuall makes the fps even worse.

Code: Select all

err:winedevice:ServiceMain driver L"Null" failed to load
err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
fixme:d3d:wined3d_adapter_find_polyoffset_scale No FBOs, assuming polyoffset scale of 2^23.
fixme:win:EnumDisplayDevicesW ((null),0,0x33f784,0x00000000), stub!
fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by dimesio »

Code: Select all

err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
Have you tried the Nouveau driver? What driver do you use in Kubuntu?
JonnyRobbie
Level 1
Level 1
Posts: 5
Joined: Tue Aug 18, 2015 3:05 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by JonnyRobbie »

Ok I have finally gotten around to try Nouveau.

Well, the wine performance is fixed. so there's that. The problem is that nouveau performance is terrible with regullar 3d applications like csgo and cannot really be used for normal usage. So I need a way to make wine work with normal nvidia-340xx drivers. Any ideas?
pga256
Level 2
Level 2
Posts: 29
Joined: Mon Aug 24, 2015 10:36 am

Re: Terrible performance on Arch compared to Kubuntu

Post by pga256 »

I notice that you are using the 340xx drivers with the standard Arch repo kernel (4+). I use the linux-lts kernel with Arch and performance is great with Nvidia.
You would need to remove the current nvidia drivers and kernel, then install the lts (Long Term Support, currently 3.14.xx) versions.

[as root or sudo] pacman -R nvidia-340xx linux
pacman -S linux-lts nvidia-340xx-lts

Before rebooting, edit your bootloader so that the boot entry reads:

LINUX ../vmlinuz-linux-lts
APPEND root=/dev/sda1 rw
INITRD ../initramfs-linux-lts.img

Adjust as necessary to fit your system.
JonnyRobbie
Level 1
Level 1
Posts: 5
Joined: Tue Aug 18, 2015 3:05 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by JonnyRobbie »

My hopes went briefly up when you suggested something I haven't thought of yet, but unfortunatelly LTS didn't help.

Code: Select all

$ uname -roms
Linux 3.14.51-1-lts x86_64 GNU/Linux
with nvidia-340xx-lts drivers (went back from nouveau) and the performance dropped again.

Any other suggestions?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Terrible performance on Arch compared to Kubuntu

Post by dimesio »

It's possible the xrandr error has something to do with this, though that usually manifests as crashes (and I thought wine-staging included a patch to fix it). You could try the workaround in the FAQ. http://wiki.winehq.org/FAQ#head-94de08f ... 5cbb03b42b
pga256
Level 2
Level 2
Posts: 29
Joined: Mon Aug 24, 2015 10:36 am

Re: Terrible performance on Arch compared to Kubuntu

Post by pga256 »

Can you tell me which specific versions of wine and nvidia340 your Kubuntu live CD use? If the performance is fine with these, maybe you just need to obtain the Arch builds of those versions.
Archwiki has info on how to obtain older Arch packages.
Or try the Arch rollback machine at Seblu.net
http://seblu.net/a/arm/packages/n/nvidia-304xx/
http://seblu.net/a/arm/packages/w/wine/
Locked