http://bugs.winehq.org/show_bug.cgi?id=19626
Summary: Half-life engine's software rendering is ridiculously slow on Intel GMA 945 Product: Wine Version: 1.1.26 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: richardcavell@mail.com
When I play Half-Life on Wine in software rendering mode, the screen renders really slowly. About one frame every five to ten seconds. What is actually being displayed is graphically correct, it's just ridiculously slow.
While watching the screen, the top rasterline is updated to the new frame, then the one below it, then the one below that, and so on, until the line being updated reaches the bottom of the screen. It then starts on a new frame. There is no tearing within the middle of a line. The lines are output at a perfectly constant speed. If I increase the resolution, it is slower to update an entire frame. My computer is easily able to render Duke Nukem 3D at fast frame rate, so there has to be a bottleneck or bug somewhere. People who have non-Intel graphics hardware don't get this problem.
I suspect that Wine is incorrectly waiting for VSync after outputting each raster line.
The problem occurs also with any Half-Life engine derivative (Counter-Strike, Condition Zero, etc). Half-Life is capable of rendering in OpenGL, software rendering or Direct3D, selectable from a menu.
I'm on 64-bit Ubuntu Karmic with all current updates applied. Half-Life and Steam have updated themselves. Intel video drivers are version 2.8.0. Wine version 1.1.26. Xserver-xorg version 7.4. Second-generation MacBook using an Intel GMA 945.
Jaunty uses version 2.6.3 of the Intel drivers, and Half-Life and its derivatives are basically completely unuseable on those drivers - they're just too buggy.
I'm happy to perform any experiments that people suggest. Running hl.exe from console doesn't give any printf output, since the main Half-Life engine isn't actually in that executable.
Richard
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #1 from Richardcavell@mail.com richardcavell@mail.com 2009-08-08 07:51:41 --- By the way, I'm using Metacity (I've turned off Visual effects, ie I've turned off Compiz). I'm also rendering Half-Life in a window.
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #2 from Richardcavell@mail.com richardcavell@mail.com 2009-08-08 23:35:20 --- Created an attachment (id=22912) --> (http://bugs.winehq.org/attachment.cgi?id=22912) System profiler screenshot
This shows that Half-Life is spending > 95% of its time in winex11.drv.so. There's a bottleneck in there.
http://bugs.winehq.org/show_bug.cgi?id=19626
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-09 00:04:58 --- Probably needs the dib engine.
http://bugs.winehq.org/show_bug.cgi?id=19626
Benjamin Debski benjamin.debski@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |benjamin.debski@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=19626
Jaime Rave jaimerave@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jaimerave@gmail.com
--- Comment #4 from Jaime Rave jaimerave@gmail.com 2010-01-18 21:39:29 --- This is probably an issue on intel driver, can you attach the console output??
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #5 from Richardcavell@mail.com richardcavell@mail.com 2010-01-18 22:26:29 --- Hi,
I did some debugging with some dudes on irc. The bottleneck was entirely within winex11.drv.so, within one of the functions that converts RGB pixels to the weird format that my Macbook display expects. The guy on irc explained that the lack of a DIB engine (I don't know what that means) is a problem. I was able to speed it up by sacrificing some bits in the bit-shifting loop, which reduced color accuracy but reduced the number of bus cycles.
A workaround is to use OpenGL, which itself is only possible with recent video driver updates. But it is possible now, on Karmic and OS X.
Richard
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #6 from Austin English austinenglish@gmail.com 2011-10-01 15:10:01 CDT --- This is your friendly reminder that there has been no bug activity for 1 year. Is this still an issue in current (1.3.29 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #7 from Richard Cavell richardcavell@mail.com 2011-10-01 18:40:38 CDT --- I'm not in a position to test it at the moment. I don't know if it's still an issue.
http://bugs.winehq.org/show_bug.cgi?id=19626
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #8 from joaopa jeremielapuree@yahoo.fr 2012-05-13 17:22:28 CDT --- Bug occurs with demo ftp://6373beef7ca3195ef1622d0c11959339:1336967934@demo.archive1.clubic.com/demo/disk1/Half-Life_Demo_jouable.exe
and nvidia geforce 7600go driver 295.49.
Can an admistrator put the link in the URL place and remove "Intel GMA 945" of the title?
And change status to NEW.
http://bugs.winehq.org/show_bug.cgi?id=19626
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |ftp://6373beef7ca3195ef1622 | |d0c11959339:1336967934@demo | |.archive1.clubic.com/demo/d | |isk1/Half-Life_Demo_jouable | |.exe Summary|Half-life engine's software |Half-life engine's software |rendering is ridiculously |rendering is ridiculously |slow on Intel GMA 945 |slow
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #9 from joaopa jeremielapuree@yahoo.fr 2013-04-17 12:07:21 CDT --- bug still there
http://bugs.winehq.org/show_bug.cgi?id=19626
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #10 from Jarkko K jarkko_korpi@hotmail.com 2013-06-10 15:12:39 CDT --- Half-life 1 +2 and episodes can be played native on linux now. So do we really need wine support?
http://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #11 from Austin English austinenglish@gmail.com 2013-06-10 17:06:39 CDT --- (In reply to comment #10)
Half-life 1 +2 and episodes can be played native on linux now. So do we really need wine support?
There's still a bug in wine.
https://bugs.winehq.org/show_bug.cgi?id=19626
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL|ftp://6373beef7ca3195ef1622 |http://www.fileplanet.com/1 |d0c11959339:1336967934@demo |0360/download/Half-Life:-Up |.archive1.clubic.com/demo/d |Link-Demo |isk1/Half-Life_Demo_jouable | |.exe | Ever confirmed|0 |1
--- Comment #12 from Jeff Zaroyko jeffz@jeffz.name --- Still present. wine-1.9.3-217-g0f8a0fd
https://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #13 from joaopa jeremielapuree@yahoo.fr --- Problem in the dib driver?
https://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com --- I can confirm a similar problem but in my case the software rendering does not draw anything at all, just a black screen and cpu burning. The OpenGL mode works surprisingly well in the other hand even for a low end integrated intel graphics card. Wine 1.9.5.
https://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #15 from joaopa jeremielapuree@yahoo.fr --- Created attachment 63622 --> https://bugs.winehq.org/attachment.cgi?id=63622 console output with ddraw channel enabled
Confirming what Bruno said with wine-4.2.
https://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #16 from joaopa jeremielapuree@yahoo.fr --- Unable to test this bug with wine-5.0-rc6 because of black screen
https://bugs.winehq.org/show_bug.cgi?id=19626
Chebanenko Igor chebanenkoigor93@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chebanenkoigor93@gmail.com
--- Comment #17 from Chebanenko Igor chebanenkoigor93@gmail.com --- (In reply to joaopa from comment #16)
Unable to test this bug with wine-5.0-rc6 because of black screen
Software Rendering works in Wine. It works in Wine 6.4 See my comment in bug 27528
https://bugs.winehq.org/show_bug.cgi?id=19626
--- Comment #18 from joaopa jeremielapuree@yahoo.fr --- Confirming. Software mode works flawlessly with wine-6.4 Reported working twice. Can an administrator close this bug as FIXED?
https://bugs.winehq.org/show_bug.cgi?id=19626
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #19 from Jeff Zaroyko jeffz@jeffz.name --- Confirming fixed. Performance seems fine at 1280x960.
wine-6.4 OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CML GT2)
https://bugs.winehq.org/show_bug.cgi?id=19626
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.6.