Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Questions about Wine on Linux
Locked
VincentVanGogh
Level 1
Level 1
Posts: 5
Joined: Sun Jun 04, 2023 11:14 am

Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by VincentVanGogh »

Hello. I'm having a really anoying problem executing Windows games on Wine Stable. Games how GTA San Andreas, GTA III and Mafia 1 plays very slow, with so much lag and limited to 10 or 15 fps, it's very unplayable.

I don't know how i can solve this. I'm using Debian 11 Bullseye.

Next, i will show mi PC specs if this can be helpful to find the solution:
description: Computer
width: 64 bits
capabilities: smp vsyscall32
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 4GiB
*-cpu
product: Intel(R) Celeron(R) CPU N2808 @ 1.58GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
size: 2249MHz
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb pti tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat cpufreq
*-pci
description: Host bridge
product: Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 0e
width: 32 bits
clock: 33MHz
configuration: driver=iosf_mbi_pci
resources: irq:0
*-display
description: VGA compatible controller
product: Atom Processor Z36xxx/Z37xxx Series Graphics & Display
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0e
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:91 memory:90000000-903fffff memory:80000000-8fffffff ioport:3050(size=8) memory:c0000-dffff
*-sata
description: SATA controller
product: Atom Processor E3800 Series SATA AHCI Controller
vendor: Intel Corporation
physical id: 13
bus info: pci@0000:00:13.0
version: 0e
width: 32 bits
clock: 66MHz
capabilities: sata ahci_1.0 bus_master cap_list
configuration: driver=ahci latency=0
resources: irq:89 ioport:3048(size=8) ioport:305c(size=4) ioport:3040(size=8) ioport:3058(size=4) ioport:3020(size=32) memory:90914000-909147ff
*-usb
description: USB controller
product: Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI
vendor: Intel Corporation
physical id: 14
bus info: pci@0000:00:14.0
version: 0e
width: 64 bits
clock: 33MHz
capabilities: xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:92 memory:90900000-9090ffff
*-generic UNCLAIMED
description: Encryption controller
product: Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine
vendor: Intel Corporation
physical id: 1a
bus info: pci@0000:00:1a.0
version: 0e
width: 32 bits
clock: 33MHz
capabilities: cap_list
configuration: latency=0
resources: memory:90800000-908fffff memory:90700000-907fffff
*-multimedia
description: Audio device
product: Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
version: 0e
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:94 memory:90910000-90913fff
*-pci:0
description: PCI bridge
product: Atom Processor E3800 Series PCI Express Root Port 1
vendor: Intel Corporation
physical id: 1c
bus info: pci@0000:00:1c.0
version: 0e
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:87 ioport:2000(size=4096) memory:90600000-906fffff
*-network
description: Wireless interface
product: RTL8723BE PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlp1s0
version: 00
serial: 54:27:1e:b3:f2:4d
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8723be driverversion=5.10.0-23-amd64 firmware=N/A ip=192.168.1.124 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:16 ioport:2000(size=256) memory:90600000-90603fff
*-pci:1
description: PCI bridge
product: Atom Processor E3800 Series PCI Express Root Port 2
vendor: Intel Corporation
physical id: 1c.1
bus info: pci@0000:00:1c.1
version: 0e
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:88 ioport:1000(size=4096) memory:90500000-905fffff ioport:90400000(size=1048576)
*-network
description: Ethernet interface
product: RTL810xE PCI Express Fast Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 05
serial: b8:ae:ed:10:9f:97
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.10.0-23-amd64 firmware=rtl_nic/rtl8105e-1.fw latency=0 link=no multicast=yes port=twisted pair
resources: irq:17 ioport:1000(size=256) memory:90500000-90500fff memory:90400000-90403fff
*-isa
description: ISA bridge
product: Atom Processor Z36xxx/Z37xxx Series Power Control Unit
vendor: Intel Corporation
physical id: 1f
bus info: pci@0000:00:1f.0
version: 0e
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: driver=lpc_ich latency=0
resources: irq:0
*-serial
description: SMBus
product: Atom Processor E3800 Series SMBus Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 0e
width: 32 bits
clock: 33MHz
capabilities: cap_list
configuration: driver=i801_smbus latency=0
resources: irq:18 memory:90914800-9091481f ioport:3000(size=32)
*-pnp00:00
product: PnP device PNP0b00
physical id: 2
capabilities: pnp
configuration: driver=rtc_cmos
*-pnp00:01
product: PnP device PNP0c02
physical id: 3
capabilities: pnp
configuration: driver=system
*-pnp00:02
product: PnP device PNP0501
physical id: 4
capabilities: pnp
configuration: driver=serial
*-pnp00:03
product: PnP device PNP0303
physical id: 5
capabilities: pnp
configuration: driver=i8042 kbd
*-pnp00:04
product: PnP device ETD2001
vendor: ELAN MICROELECTRONICS CORPORATION
physical id: 6
capabilities: pnp
configuration: driver=i8042 aux
*-pnp00:05
product: PnP device PNP0c02
physical id: 7
capabilities: pnp
configuration: driver=system


Thanks for reading and i hope i can solve this
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by jkfloris »

Since these are older games, the speed of your computer should not be an issue.
Do you have the 32-bit Mesa drivers installed?

Code: Select all

sudo apt install libgl1-mesa-glx
VincentVanGogh
Level 1
Level 1
Posts: 5
Joined: Sun Jun 04, 2023 11:14 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by VincentVanGogh »

jkfloris wrote: Sun Jun 04, 2023 3:09 pm Since these are older games, the speed of your computer should not be an issue.
Do you have the 32-bit Mesa drivers installed?

Code: Select all

sudo apt install libgl1-mesa-glx
No. If i install this the game will run playable?? Like, windows?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by jkfloris »

You will need the dependencies.

I also see now that I made a mistake. Besides libgl1-mesa-glx, you also need libgl1-mesa-glx:i386
(Because you are running 32-bit games)

Code: Select all

sudo apt install libgl1-mesa-glx libgl1-mesa-glx:i386
When these packages and their dependencies are installed, the games should be playable.
If not, I'm curious about the terminal output.
VincentVanGogh
Level 1
Level 1
Posts: 5
Joined: Sun Jun 04, 2023 11:14 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by VincentVanGogh »

jkfloris wrote: Mon Jun 05, 2023 8:05 am You will need the dependencies.

I also see now that I made a mistake. Besides libgl1-mesa-glx, you also need libgl1-mesa-glx:i386
(Because you are running 32-bit games)

Code: Select all

sudo apt install libgl1-mesa-glx libgl1-mesa-glx:i386
When these packages and their dependencies are installed, the games should be playable.
If not, I'm curious about the terminal output.
I installed both (libgl1-mesa-glx and libgl1-mesa-glx:i386) and the game is still unplayable, is as if i not installed nothing
Here is the Terminal output. This appeared when i loaded the executable "gta_sa.exe" and i started a new game. The game, as always, runs unplayable:

If there are some spanish words, is because i have my system on spanish because i speak spanish (by the way, sorry if in my posts my engrish is so bad)

008c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
008c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
008c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
008c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:err:winediag:wined3d_dll_init Using the OpenGL renderer.
0050:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
0050:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
0024:fixme:imm:ImeSetActiveContext (0001005A, 1): stub
0024:fixme:imm:ImmReleaseContext (00030056, 0001005A): stub
0024:fixme:d3d:resource_check_usage Unhandled usage flags 0x20.
0024:fixme:system:NtUserSystemParametersInfo Unimplemented action: 59 (SPI_SETSTICKYKEYS)
0024:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
winegstreamer error: decodebin0: A la instalación de GStreamer le falta un complemento.
winegstreamer error: decodebin0: ../gst/playback/gstdecodebin2.c(4719): gst_decode_bin_expose (): /GstBin:bin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: MPEG-1 System Stream (video/mpeg, systemstream=(boolean)true, mpegversion=(int)1)


(wine:1961): GStreamer-CRITICAL **: 12:06:14.353: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.353: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.353: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.353: gst_element_set_bus: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.353: gst_object_unref: assertion 'object != NULL' failed
0024:fixme:quartz:mpeg_splitter_sink_query_accept Unsupported subtype {e436eb84-524f-11ce-9f53-0020af0ba770}.
winegstreamer error: decodebin1: A la instalación de GStreamer le falta un complemento.
winegstreamer error: decodebin1: ../gst/playback/gstdecodebin2.c(4719): gst_decode_bin_expose (): /GstBin:bin1/GstDecodeBin:decodebin1:
no suitable plugins found:
Missing decoder: MPEG-1 System Stream (video/mpeg, systemstream=(boolean)true, mpegversion=(int)1)


(wine:1961): GStreamer-CRITICAL **: 12:06:14.533: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.533: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.533: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.533: gst_element_set_bus: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:14.533: gst_object_unref: assertion 'object != NULL' failed
0024:fixme:quartz:mpeg_splitter_sink_query_accept Unsupported subtype {e436eb84-524f-11ce-9f53-0020af0ba770}.
winegstreamer error: decodebin2: A la instalación de GStreamer le falta un complemento.
winegstreamer error: decodebin2: ../gst/playback/gstdecodebin2.c(4719): gst_decode_bin_expose (): /GstBin:bin2/GstDecodeBin:decodebin2:
no suitable plugins found:
Missing decoder: MPEG-1 System Stream (video/mpeg, systemstream=(boolean)true, mpegversion=(int)1)


(wine:1961): GStreamer-CRITICAL **: 12:06:16.512: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.512: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.512: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.513: gst_element_set_bus: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.513: gst_object_unref: assertion 'object != NULL' failed
0024:fixme:quartz:mpeg_splitter_sink_query_accept Unsupported subtype {e436eb84-524f-11ce-9f53-0020af0ba770}.
winegstreamer error: decodebin3: A la instalación de GStreamer le falta un complemento.
winegstreamer error: decodebin3: ../gst/playback/gstdecodebin2.c(4719): gst_decode_bin_expose (): /GstBin:bin3/GstDecodeBin:decodebin3:
no suitable plugins found:
Missing decoder: MPEG-1 System Stream (video/mpeg, systemstream=(boolean)true, mpegversion=(int)1)


(wine:1961): GStreamer-CRITICAL **: 12:06:16.683: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.683: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.683: gst_object_unref: assertion 'object != NULL' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.683: gst_element_set_bus: assertion 'GST_IS_ELEMENT (element)' failed

(wine:1961): GStreamer-CRITICAL **: 12:06:16.683: gst_object_unref: assertion 'object != NULL' failed
0024:fixme:quartz:mpeg_splitter_sink_query_accept Unsupported subtype {e436eb84-524f-11ce-9f53-0020af0ba770}.
0120:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0024:fixme:d3d:resource_check_usage Unhandled usage flags 0x20.
0024:fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
0024:err:xvidmode:ComputeGammaFromRamp low-biased gamma ramp (588), rejected
0024:fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
0024:err:xvidmode:ComputeGammaFromRamp low-biased gamma ramp (588), rejected
0024:fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
0024:err:xvidmode:ComputeGammaFromRamp low-biased gamma ramp (588), rejected
0024:fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by jkfloris »

You are missing the libav gstreamer plugin.

Code: Select all

sudo apt install gstreamer1.0-libav:i386
Unfortunately I don't see anything that causes the lower framerate.
Do you have any idea how many fps GTA SA has on your system with Windows?
VincentVanGogh
Level 1
Level 1
Posts: 5
Joined: Sun Jun 04, 2023 11:14 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by VincentVanGogh »

jkfloris wrote: Wed Jun 07, 2023 6:30 am You are missing the libav gstreamer plugin.

Code: Select all

sudo apt install gstreamer1.0-libav:i386
Unfortunately I don't see anything that causes the lower framerate.
Do you have any idea how many fps GTA SA has on your system with Windows?
Yes. The game on windows runs very good with the very lowest graphic config, runs at 30 fps very stable, and the other games that i mentioned runs perfectly on Windows, at 30 or 60 fps with the lowest graphic config.

Now that i have debian, no matter how much I lower the graphic settings to a minimum, the game continues to be unplayable, hovering between 10 or 5 fps in the case of, for example, a lot of traffic or when there are graphic effects.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by jkfloris »

Could you post the output of

Code: Select all

inxi -G
If inxi is not installed, it can be installed with:

Code: Select all

sudo apt install inxi
VincentVanGogh
Level 1
Level 1
Posts: 5
Joined: Sun Jun 04, 2023 11:14 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by VincentVanGogh »

jkfloris wrote: Wed Jun 07, 2023 2:51 pm Could you post the output of

Code: Select all

inxi -G
If inxi is not installed, it can be installed with:

Code: Select all

sudo apt install inxi
I don't needed to install inxi, my system had it

Code: Select all

Graphics:
  Device-1: Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display 
  driver: i915 v: kernel 
  Device-2: Acer USB HD Webcam type: USB driver: uvcvideo 
  Display: x11 server: X.Org 1.20.11 driver: loaded: intel 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics (BYT) v: 4.2 Mesa 20.3.5 
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Very slow and laggy games on Wine Stable - Debian 11 Bullseye

Post by jkfloris »

I don't have much experience with the Intel Atom GPU, so I can only give general advice.
- Try Gallium Nine

Code: Select all

sudo apt install libd3dadapter9-mesa libd3dadapter9-mesa:i386
# If necessary, install and update Winetricks 
# sudo apt install winetricks
# sudo winetricks --self-update
winetricks galliumnine
wine ninewinecfg
- Try the modesetting driver instead of the Intel one.
For some people this will give some performance.

Code: Select all

sudo apt remove xserver-xorg-video-intel
- Debian version 12 will be released in two days. You might want to upgrade to the latest version.
Locked