http://bugs.winehq.org/show_bug.cgi?id=18050
Summary: Counter Strike 1.6 non-video slowdown Product: Wine Version: 1.1.12 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: elfy.ua@gmail.com
Hello,
I was running Counter Strike 1.6 on wine-1.1.12. The first run there was some minor slowdowns, but the game did run correctly after a minute or so and did so for the 3 hrs approx. The other runs the following occurs: • The menu is okay, though some characters are missing at random. Not the whole text, but select characters, and the exact missing character set is random between independent executions. • When the game is run it drops to 1 frame every 5 seconds(can be measured looking at the game timer). • Wine produces no notable error messages, and even any warning. • The bug persists through OpenGL and Software renderers(DX is screwed), and no such lag is seen in any other heavy-3D program. • The emulator thread and the wineserver itself during the lag are put to sleep, the CPU usage never exeeds 1%.
From what I understand, this is smth wrong with IO, but I don't know how to
debug it.
Video card: Intel X3100, driver ver: >2.6.3(git), xorg ver: 1.6.0.
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #1 from Austin English austinenglish@gmail.com 2009-04-14 11:07:04 --- Retry in 1.1.19.
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #2 from Oleksiy Protas elfy.ua@gmail.com 2009-04-14 13:23:34 --- (In reply to comment #1)
Retry in 1.1.19.
Retried in 1.1.19, absolutely the same.
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #3 from Oleksiy Protas elfy.ua@gmail.com 2009-04-14 13:28:27 --- And also, the frames missing are actually rendered in between, it goes like: 5 seconds of frozen picture looped sound, then all the frames queried to render are shown in milliseconds, then frozen again. The actual proccess is frozen as it doesn't count timers correctly when hosts a game, but does when joins one.
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #4 from Oleksiy Protas elfy.ua@gmail.com 2009-04-14 14:11:54 --- Created an attachment (id=20447) --> (http://bugs.winehq.org/attachment.cgi?id=20447) Top of strace -c
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #5 from Oleksiy Protas elfy.ua@gmail.com 2009-04-14 14:28:10 --- Highest rating calls on strace -tttT: 1239736422.664879 read(8, "\360\3613\0\0\0\0\0\1\0\0\0\0\0\0\0"..., 16) = 16 <0.701827> 1239736425.005592 poll([{fd=13, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=13, revents=POLLOUT}]) <0.516805> 1239736420.779530 poll([{fd=13, events=POLLIN}], 1, -1) = 1 ([{fd=13, revents=POLLIN}]) <0.420297> 1239736424.259985 poll([{fd=13, events=POLLIN}], 1, -1) = 1 ([{fd=13, revents=POLLIN}]) <0.326232> 1239736447.372498 read(84, "IDSP\2\0\0\0\2\0\0\0\1\0\0\0\363\0045C\0\1\0\0\0\1\0\0\1\0\0\0\0"..., 65536) = 65536 <0.128141>
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #6 from Oleksiy Protas elfy.ua@gmail.com 2009-04-14 14:32:03 --- Created an attachment (id=20448) --> (http://bugs.winehq.org/attachment.cgi?id=20448) Standart wine log, with no additional debugging set.
This is all that goes out prior to lag time. During lags no messages are produced.
http://bugs.winehq.org/show_bug.cgi?id=18050
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #20448|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #7 from Vitaliy Margolen vitaliy@kievinfo.com 2009-04-14 20:44:50 --- Video card and drivers? Have you killed/disabled/shutoff all sound servers (pulseaudio, esd). Did you disable compiz (3d desktop effects)?
http://bugs.winehq.org/show_bug.cgi?id=18050
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #20447|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #8 from Oleksiy Protas elfy.ua@gmail.com 2009-04-15 03:46:14 --- (In reply to comment #7)
Video card and drivers? Have you killed/disabled/shutoff all sound servers (pulseaudio, esd). Did you disable compiz (3d desktop effects)?
No sound server is running. The bug occurs either with kwin+composite+dri2, or run on a separate X without even compositioning support. Video drivers and card are given it the first post
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #9 from Oleksiy Protas elfy.ua@gmail.com 2009-04-15 03:48:48 --- UPDATE: I've figured the exact time the bug occurs. When the map loads and the map information box is show — there will be bug. If you manage to skip this (say map cs_assault) in the main menu, the game runs perfectly. Also, when run from samba share, this also goes okay as the map information box is empty as opposed to enierely black when run from hard drive. Ideas?
http://bugs.winehq.org/show_bug.cgi?id=18050
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #10 from Vitaliy Margolen vitaliy@kievinfo.com 2009-04-15 19:31:38 --- Video driver bug. Get yourself nVidia card.
http://bugs.winehq.org/show_bug.cgi?id=18050
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Vitaliy Margolen vitaliy@kievinfo.com 2009-04-15 19:32:53 --- Closing. You should open bug with XOrg for bad driver performance. CS 1.6 with OpenGL backend is a pure OpenGL app. Wine doesn't do nothing expect passing calls to the driver.
http://bugs.winehq.org/show_bug.cgi?id=18050
Oleksiy Protas elfy.ua@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|INVALID |
--- Comment #12 from Oleksiy Protas elfy.ua@gmail.com 2009-04-15 20:46:23 --- (In reply to comment #11)
Closing. You should open bug with XOrg for bad driver performance. CS 1.6 with OpenGL backend is a pure OpenGL app. Wine doesn't do nothing expect passing calls to the driver.
Are you kidding or what? Please look at first comment and strace log. This IS NOT connected to video subsystem. Software rendering has the same problem, so this isn't OpenGL related.
As I figured, this is caused somehow by gecko engine. When I set mshtml.dll to native it fails to load the html engine and thus causes no HTML render and the game works as intended minus mission briefings. This is a temporary fix. But the problem is that gecko hangs the process.
Video driver bug. Get yourself nVidia card.
Well thank you for a good advice, if I only could.
http://bugs.winehq.org/show_bug.cgi?id=18050
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #13 from Dmitry Timoshkov dmitry@codeweavers.com 2009-04-16 01:05:26 --- (In reply to comment #12)
Are you kidding or what? Please look at first comment and strace log.
strace is not the way to investigate this kind of problems under Wine.
http://bugs.winehq.org/show_bug.cgi?id=18050
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Dmitry Timoshkov dmitry@codeweavers.com 2009-04-16 01:05:45 --- Closing invalid.
http://bugs.winehq.org/show_bug.cgi?id=18050
Oleksiy Protas elfy.ua@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|INVALID |
--- Comment #15 from Oleksiy Protas elfy.ua@gmail.com 2009-04-16 08:11:35 --- (In reply to comment #13)
strace is not the way to investigate this kind of problems under Wine.
Strace shows the slowing factor is a read operation which wouldn't be true if this was because of video.
http://bugs.winehq.org/show_bug.cgi?id=18050
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #16 from Dmitry Timoshkov dmitry@codeweavers.com 2009-04-16 10:35:43 --- (In reply to comment #15)
Strace shows the slowing factor is a read operation which wouldn't be true if this was because of video.
read/write is used by Wine to communicate between client and server, also it's used a lot by native Linux libraries loaded by Wine.
Do you mean that somehow strace serves as a profiler for you? Then where are the used functions timing results? Until you show that this bug is invalid.
http://bugs.winehq.org/show_bug.cgi?id=18050
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Dmitry Timoshkov dmitry@codeweavers.com 2009-04-16 10:36:05 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=18050
--- Comment #18 from Oleksiy Protas elfy.ua@gmail.com 2009-04-16 10:47:07 --- (In reply to comment #16)
read/write is used by Wine to communicate between client and server, also it's used a lot by native Linux libraries loaded by Wine.
Do you mean that somehow strace serves as a profiler for you? Then where are the used functions timing results? Until you show that this bug is invalid.
Okay, I'll compile wine with debugging support and show where exactly the bottleneck is. Having gecko disabled solves the bug, so I dare to assume this is a bug in gecko.
Strace -c show CPU time spent in each system call.