http://bugs.winehq.org/show_bug.cgi?id=30538
Bug #: 30538 Summary: Touhou 11, 12, and 13 are incredibly slow with Intel, Nouveau, and Nvidia drivers Product: Wine Version: 1.5.3 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: erappleman@gmail.com Classification: Unclassified
No matter which libraries I use (i965 Mesa, Nouveau Gallium, or Nvidia) on my Optimus machine, I can't get the games to exceed 20fps.
Linux kingfisher 3.3.0-3.dmz.1-liquorix-amd64 #1 ZEN SMP PREEMPT Mon Apr 23 22:15:14 CDT 2012 x86_64 x86_64 x86_64 GNU/Linux
My hardware is Intel i7-2630QM (HD3000) and a GT 555M. Yes, I know how to use the Nvidia GPU properly.
X and Mesa are latest git versions.
eric@kingfisher:~/touhou/TH11 ~ Subterranean Animism$ LIBGL_DEBUG=verbose wine th11e libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/i965_dri.so libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/i965_dri.so fixme:win:EnumDisplayDevicesW ((null),0,0x32f800,0x00000000), stub! fixme:font:WineEngAddFontResourceEx Ignoring flags 10 fixme:d3d:wined3d_swapchain_get_raster_status swapchain 0x185380, raster_status 0x32fc80 semi-stub!
http://bugs.winehq.org/show_bug.cgi?id=30538
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial
--- Comment #1 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-04-28 16:37:23 CDT --- http://bugs.winehq.org/page.cgi?id=fields.html#importance
http://bugs.winehq.org/show_bug.cgi?id=30538
Emmanuel Gil Peyrot bugs@linkmauve.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bugs@linkmauve.fr
--- Comment #2 from Emmanuel Gil Peyrot bugs@linkmauve.fr 2012-04-28 18:14:48 CDT --- I just bisected for that issue, and here is the bad commit: commit bd97589dbac60d1ed78ed1e49cf6ce6cee8c40b7 Author: Akihiro Sagawa sagawa.aki@gmail.com Date: Wed Jan 18 23:33:53 2012 +0900
wined3d: Let GetRasterStatus return D3D_OK, again.
:040000 040000 5f1c5f6a708ba5146f4fc3833b4d468b11e950a8 4537b99b90907fa20659c2e35c73a75b39c70714 M dlls
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #3 from Emmanuel Gil Peyrot bugs@linkmauve.fr 2012-04-28 18:43:31 CDT --- When I revert that commit, the framerate in those games goes back from 10~15fps to 60fps.
I think the severity should be set to normal instead, since that bug makes the games totally unplayable on my Intel i3/HD3000 with the i915 driver.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #4 from Starks erappleman@gmail.com 2012-04-29 00:38:37 CDT --- This problem is much older than that commit, but I'll give it a try.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #5 from Starks erappleman@gmail.com 2012-04-29 02:42:07 CDT --- Confirm. Reverting solves the issue.
http://bugs.winehq.org/show_bug.cgi?id=30538
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Regression SHA1| |bd97589dbac60d1ed78ed1e49cf | |6ce6cee8c40b7 Severity|trivial |minor
--- Comment #6 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-04-29 09:53:42 CDT --- Confirming per comment 5.
http://bugs.winehq.org/show_bug.cgi?id=30538
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sagawa.aki+winebugs@gmail.c | |om
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #7 from Sagawa sagawa.aki+winebugs@gmail.com 2012-05-04 10:25:04 CDT --- Could you get a log with WINEDEBUG=+d3d including my patches?
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #8 from Emmanuel Gil Peyrot bugs@linkmauve.fr 2012-05-05 04:52:36 CDT --- Created attachment 40039 --> http://bugs.winehq.org/attachment.cgi?id=40039 Log with WINEDEBUG=+d3d of the trial version of Subterranean Animism
The demo (downloadable here: http://www16.big.or.jp/~zun/html/th11dl.html) exhibits the same regression.
http://bugs.winehq.org/show_bug.cgi?id=30538
Emmanuel Gil Peyrot bugs@linkmauve.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #40039|application/octet-stream |application/x-xz mime type| |
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #9 from Sagawa sagawa.aki+winebugs@gmail.com 2012-05-07 10:20:32 CDT --- Created attachment 40077 --> http://bugs.winehq.org/attachment.cgi?id=40077 proposed patch
Please try this patch. If it works fine, I'll send it to wine-patches.
Technical details: The function calls wined3d_swapchain_get_display_mode() every time to get refresh rate, but it takes more than 500msec. This prevent getting (faked) raster status so frequently. As returning value is a fake, I assume the monitor is 60 Hz.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #10 from Henri Verbeet hverbeet@gmail.com 2012-05-07 11:05:09 CDT --- (In reply to comment #9)
Technical details: The function calls wined3d_swapchain_get_display_mode() every time to get refresh rate, but it takes more than 500msec.
Is that related to bug 30184? Also note that ddraw7_GetScanLine() in ddraw is similar, it should probably call wined3d_swapchain_get_raster_status(), although some aspects of the ddraw7_GetScanLine() implementation are probably nicer.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #11 from Sagawa sagawa.aki+winebugs@gmail.com 2012-05-08 10:18:16 CDT --- I found a bug in the previous patch. As orig_height is an original screen height, in full-screen mode, it doesn't return a correct value for the scan_line member. I'll submit a new patch later.
(In reply to comment #10)
Is that related to bug 30184?
Probably yes. Polling EDID is partly a slow factor of the query. But it's a good idea to avoid getting information until display setting is changed.
Also note that ddraw7_GetScanLine() in ddraw is similar, it should probably call wined3d_swapchain_get_raster_status(), although some aspects of the ddraw7_GetScanLine() implementation are probably nicer.
Although I've not tested, ddraw7_GetScanLine() seems not to need a swap chain (= surface). Currently wined3d_swapchain_get_raster_status() requires swap chain, it's not easy to merge them.
http://bugs.winehq.org/show_bug.cgi?id=30538
Knightlain pastorrub@msn.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pastorrub@msn.com
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #12 from Eric Appleman erappleman@gmail.com 2012-05-30 04:27:40 CDT --- I'd test these patches, but you literally cannot build a 32-bit Wine on 64-bit Ubuntu anymore.
http://bugs.winehq.org/show_bug.cgi?id=30538
Martin Herkt lachs0r@srsfckn.biz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lachs0r@srsfckn.biz
--- Comment #13 from Martin Herkt lachs0r@srsfckn.biz 2012-06-17 13:29:00 CDT --- (In reply to comment #9)
Created attachment 40077 [details] proposed patch
Please try this patch.
Fixes it for me (nvidia).
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #14 from Eric Appleman erappleman@gmail.com 2012-06-19 01:13:44 CDT --- Any way to get this patch upstream?
http://bugs.winehq.org/show_bug.cgi?id=30538
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=30538
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #40077|0 |1 is obsolete| |
--- Comment #15 from Sagawa sagawa.aki+winebugs@gmail.com 2012-06-20 11:43:21 CDT --- Created attachment 40624 --> http://bugs.winehq.org/attachment.cgi?id=40624 proposed patch 2
I made an updated patch which fixes full-screen problem (comment #11). If I receive a good feedback, I'll send the patch to wine-patches. Please be patient until the patch merged into upstream.
Technical details: In previous patch, I used internal variables to obtain the screen height. But it had full-screen size problem. So, in this patch, I use a standard WINAPI, GetDeviceCaps(), to do this.
http://bugs.winehq.org/show_bug.cgi?id=30538
James Eder jimportal@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jimportal@gmail.com
--- Comment #16 from James Eder jimportal@gmail.com 2012-07-16 15:38:18 CDT --- Please retest with today's git as the closure of bug 30184 (in today's git) may affect this bug.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #17 from Emmanuel Gil Peyrot bugs@linkmauve.fr 2012-07-17 04:33:59 CDT --- In latest git, the issue remains with my Intel HD3000 graphic card.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #18 from Emmanuel Gil Peyrot bugs@linkmauve.fr 2012-07-19 04:44:11 CDT --- Actually, it works fine in resolutions of 960×720 or 1280×960, but not in 640×480 (either fullscreen or windowed), and of course it was the only two configurations I tried… It’s the same in the git of the 17th and in 1.5.9.
http://bugs.winehq.org/show_bug.cgi?id=30538
tyle7@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tyle7@hotmail.com
--- Comment #19 from tyle7@hotmail.com 2012-07-19 05:24:53 CDT --- Works fine for me now, using wine 1.5.9 and nvidia drivers 302.17 on a GeForce GTX 550 Ti card. All games now keeps FPS steadily around 60. This was tested on resolution 640×480 (fullscreen).
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #20 from Eric Appleman erappleman@gmail.com 2012-08-01 21:43:09 CDT --- 1.5.10 is better, but it's still not as fast as the 1.3.37 build I'm using.
I only get 50fps with 1.5.10.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #21 from Emmanuel Gil Peyrot bugs@linkmauve.fr 2012-08-02 02:53:04 CDT --- With 1.5.10 (on Intel HD3000) I finally got nearly 60fps even in the two 640×480 resolutions. Nearly as in 55~60fps, while with 1.3.37 I had a constant 59~60fps, and with higher resolutions and 1.5.10 or 1.5.9 I get that framerate.
An other issue that was present in 1.5.9 that I didn’t spot is that the 640×480 fullscreen is scaled to 1366×768 then cropped to show only the top-left 640×480 pixels if the resolution prior to the launch of the game was 1366×768. If I set the X resolution to 640×480 with xrandr before the start, the display is fine.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #22 from Henri Verbeet hverbeet@gmail.com 2012-09-02 09:28:17 CDT --- Does the original bug still happen for anyone? If it does, please attach the output of "xrandr --verbose".
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #23 from Eric Appleman erappleman@gmail.com 2012-09-02 13:36:34 CDT --- Here ya go.
Btw, this shows up every half second in 1.5.11:
fixme:d3d:wined3d_get_adapter_raster_status wined3d 0x13f4f0, adapter_idx 0, raster_status 0x32fc80 semi-stub!
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #24 from Henri Verbeet hverbeet@gmail.com 2012-09-02 15:39:56 CDT --- But you said it mostly works for you in comment 20.
(In reply to comment #23)
Btw, this shows up every half second in 1.5.11:
fixme:d3d:wined3d_get_adapter_raster_status wined3d 0x13f4f0, adapter_idx 0, raster_status 0x32fc80 semi-stub!
That doesn't sound right, that's not supposed to be printed very often, typically only once. Nevertheless, you can probably improve things a bit by setting WINEDEBUG=-all.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #25 from Eric Appleman erappleman@gmail.com 2012-09-03 14:44:34 CDT --- Mostly works is not okay. 50 fps is not okay.
These games require constant 60 fps.
The only thing that needs to be done at this point is rebase the patch against git and submit it to wine-patches.
As I've said before, I'd do this myself if was competent enough.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #26 from Eric Appleman erappleman@gmail.com 2012-09-03 14:45:46 CDT --- Btw, the stub message is behaving normally now.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #27 from Eric Appleman erappleman@gmail.com 2012-09-13 23:59:47 CDT --- I can now verify that the patch works successfully with versions through 1.5.7.
The code was rewritten starting with 1.5.8.
http://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #28 from Eric Appleman erappleman@gmail.com 2012-11-26 13:37:53 CST --- Still present in 1.5.18.
http://bugs.winehq.org/show_bug.cgi?id=30538
Andrew Fan andrewsuicune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrewsuicune@gmail.com
--- Comment #29 from Andrew Fan andrewsuicune@gmail.com 2013-06-14 15:19:11 CDT --- I went and linked this bug to the three games in question (most recent version).
Also, I have Intel HD Graphics 3000 384 MB on Mac OSX Lion 10.7.5 with 4GB 1333 MHz DDR3 RAM, and all three games work at 60 FPS.
http://bugs.winehq.org/show_bug.cgi?id=30538
Alexander Waldmann g6672D@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |g6672D@gmail.com
--- Comment #30 from Alexander Waldmann g6672D@gmail.com 2013-06-22 03:17:39 CDT --- Still an issue in 1.6-rc3,
http://bugs.winehq.org/show_bug.cgi?id=30538
Brandon Corujo haku08879@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |haku08879@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #31 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.37 or newer) wine? If so, please attach the terminal output in 1.7.37 (see http://wiki.winehq.org/FAQ#get_log).
https://bugs.winehq.org/show_bug.cgi?id=30538
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #32 from super_man@post.com --- (In reply to Alexander Waldmann from comment #30)
Still an issue in 1.6-rc3,
NO replys since that time. The attached patch doesnt apply anymore.
https://bugs.winehq.org/show_bug.cgi?id=30538
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #33 from joaopa jeremielapuree@yahoo.fr --- Still a bug in current wine?
https://bugs.winehq.org/show_bug.cgi?id=30538
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
https://bugs.winehq.org/show_bug.cgi?id=30538
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=30538
--- Comment #34 from joaopa jeremielapuree@yahoo.fr --- Problem occurred with the demo (available at https://archive.org/details/Chireiden) But now, the demo is working fine (the fps can be checked at the bottom of the screen of the game).
This bug can be closed as FIXED.
https://bugs.winehq.org/show_bug.cgi?id=30538
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #35 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to joaopa from comment #34)
Problem occurred with the demo (available at https://archive.org/details/Chireiden) But now, the demo is working fine (the fps can be checked at the bottom of the screen of the game).
This bug can be closed as FIXED.
I guess so then, and last response from reporter of bug was 6 years ago, so for now we I think it`s ok to resolve this as fixed.
@Reporter of bug: Please feel free to reopen this bugreport if you still run into this issue
Regards
https://bugs.winehq.org/show_bug.cgi?id=30538
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #36 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.5.