https://bugs.winehq.org/show_bug.cgi?id=48616
Bug ID: 48616 Summary: Using wchedtool slows down program Product: Wine-staging Version: 5.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: geist1@sms.at CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Very slow performance when running a program with schedtool only on one CPU.
This Problem appeart between wine 3.1 and wine 3.2
Problem : When running a program which requires to be run on only one CPU (e.g. heroes of might and magic 3) - if running on Dualcore CPU's the program crashes sometimes in mp3dec - the entire program runs like in slow motion, even the mouse pointer moves very slow.
The Program itself runs, but the speed of executed program is too slow for playing.
Wine Version 3.1 is the last working one correctly with schedtool.
The command is : env WINEPREFIX="/home/hero/.wine" schedtool -a 0x2 -e wine C:\\windows\\command\\start.exe /Unix /home/hero/.wine/dosdevices/c:/users/Public/Desktop/Heroes\ of\ Might\ and\ Magic\ 3\ Complete.lnk
It doesn't matter if the program is running on cpu2 or cpu1.
https://bugs.winehq.org/show_bug.cgi?id=48616
Reinhard Berger geist1@sms.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Using wchedtool slows down |Using schedtool slows down |program |program
https://bugs.winehq.org/show_bug.cgi?id=48616
Reinhard Berger geist1@sms.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=48616
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #1 from Béla Gyebrószki gyebro69@gmail.com --- Does it help if you disable CSMT?
FWIW, the bug is present in plain Wine too, it's not Staging specific. Tested with HoMM 3.
https://bugs.winehq.org/show_bug.cgi?id=48616
--- Comment #2 from Reinhard Berger geist1@sms.at --- (In reply to Béla Gyebrószki from comment #1)
Does it help if you disable CSMT?
FWIW, the bug is present in plain Wine too, it's not Staging specific. Tested with HoMM 3.
My Winecfg 4.0.2 does not have this "Staging" config tab.
According to github wine web page , this configuration should be disabled by default.
Does this mean that when this config tab is not present, the function is disabled ?
https://bugs.winehq.org/show_bug.cgi?id=48616
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- The intended way to disable CSMT is through the registry; create the key HKCU\Software\Wine\Direct3D and set the DWORD value "csmt" to 0.
Which documentation states that CSMT is disabled by default? It's outdated and incorrect.
https://bugs.winehq.org/show_bug.cgi?id=48616
--- Comment #4 from Reinhard Berger geist1@sms.at --- (In reply to Zebediah Figura from comment #3)
The intended way to disable CSMT is through the registry; create the key HKCU\Software\Wine\Direct3D and set the DWORD value "csmt" to 0.
Which documentation states that CSMT is disabled by default? It's outdated and incorrect.
https://github.com/wine-compholio/wine-staging/wiki/CSMT
https://bugs.winehq.org/show_bug.cgi?id=48616
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- (In reply to Reinhard Berger from comment #4)
(In reply to Zebediah Figura from comment #3)
The intended way to disable CSMT is through the registry; create the key HKCU\Software\Wine\Direct3D and set the DWORD value "csmt" to 0.
Which documentation states that CSMT is disabled by default? It's outdated and incorrect.
That wiki is severely outdated, and wasn't updated in years even when the Staging project did live in that repository. You might try asking the repository owners to update or remove that documentation.
https://bugs.winehq.org/show_bug.cgi?id=48616
--- Comment #6 from Reinhard Berger geist1@sms.at --- (In reply to Zebediah Figura from comment #5)
(In reply to Reinhard Berger from comment #4)
(In reply to Zebediah Figura from comment #3)
The intended way to disable CSMT is through the registry; create the key HKCU\Software\Wine\Direct3D and set the DWORD value "csmt" to 0.
Ok , thankyou this setting fixes the problem.
https://bugs.winehq.org/show_bug.cgi?id=48616
Reinhard Berger geist1@sms.at changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME
--- Comment #7 from Reinhard Berger geist1@sms.at --- Works for me with the described switching off of "CSMT" in the registry.
https://bugs.winehq.org/show_bug.cgi?id=48616
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |WONTFIX
--- Comment #8 from Zebediah Figura z.figura12@gmail.com --- I'm not really sure whether this is a bug, or a bug worth fixing.
I suspect "requires to be run on only one CPU" is a workaround for something like bug 35041. I also suspect that running a CSMT thread without actually making use of multiple threads is inherently not going to perform well. I'm going to resolve this as WONTFIX accordingly.
https://bugs.winehq.org/show_bug.cgi?id=48616
--- Comment #9 from Reinhard Berger geist1@sms.at --- (In reply to Zebediah Figura from comment #8)
I'm not really sure whether this is a bug, or a bug worth fixing.
I suspect "requires to be run on only one CPU" is a workaround for something like bug 35041. I also suspect that running a CSMT thread without actually making use of multiple threads is inherently not going to perform well. I'm going to resolve this as WONTFIX accordingly.
Well, according from some users this problem appears all version of "heroes of might and magic 3" - that it will crash sometimes in "mp3dec.dll"- and it will also happens under real windows systems like (Windows 7/8/10).
The solution there was to setup the program running only on 1 CPU by using the property of the tab of the "heroes3.exe".
Since there is no such tab outside of the Windows OS, we need to use programs like shedtool / taskset.
But if one can truly repair this problem it would be a great solution, i am sure there are alot of older games out that have such a multi CPU problem.
Meanwhile a nice fix would be that one can specify this settings (on/off) for a special program in the winecfg program.
Another solution would be to use "PlayOnLinux" where one can setup a separate registry for each program.
I have not seen any performance boost on my games with the enabled "CSMT" setting.
But on the other side i don't own much newer windows gamew, good possible that some ego shooter games got some speedups with this "CSMT" enabled.
As on my older games it doesn't matter if this is enabled or disabled.
Only as i have told before when this "CSMT" is enabled and i need to run "Heroes of Might&Magic 3" on one CPU , it slows down the entire game.
Without "shedtool/taskset" and even with enabled "CSMT" Heroes3 will run correctly, but then crashes sometimes in the mp3dec.dll.
And the problem is that the crash is not always on the same place.
It seems to depend on time, one time it can crash just after 1-2 rounds, sometimes you may play servel hours until it crashes.
https://bugs.winehq.org/show_bug.cgi?id=48616
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Austin English austinenglish@gmail.com --- Closing.