http://bugs.winehq.org/show_bug.cgi?id=31644
Bug #: 31644 Summary: glMapBufferRange is extremely slow while playing Resident Evil 5 ( happens only on nvidia binary driver ) Product: Wine Version: 1.5.12 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: tizbac2@gmail.com Classification: Unclassified
Calls to glMapBufferRange are extremely slow on nvidia drivers with resident evil 5, if this should be reported to nvidia instead just close it
over 90% of frame time is taken by glMapBufferRange
http://bugs.winehq.org/show_bug.cgi?id=31644
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |performance
http://bugs.winehq.org/show_bug.cgi?id=31644
tizbac2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tizbac2@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31644
Stanisław Halik sthalik@misaki.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sthalik@misaki.pl
--- Comment #1 from Stanisław Halik sthalik@misaki.pl 2013-02-20 04:03:27 CST --- Same problem with ATI, when games use inefficient dynamic BO maps:
http://ati.cchtml.com/show_bug.cgi?id=722
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #2 from tizbac2@gmail.com 2013-02-20 07:05:35 CST --- It's strange that opensource drivers does not suffer from that problem at all, maybe it is on driver side too
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #3 from Stanisław Halik sthalik@misaki.pl 2013-02-20 07:06:40 CST --- It is. You can disable buffer range extension with a quirk.
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #4 from tizbac2@gmail.com 2013-02-20 07:08:00 CST --- ATM , Resident Evil 5 was faster on geforce 9800 with nouveau than on GTX 670 with nvidia drivers
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #5 from Stanisław Halik sthalik@misaki.pl 2013-02-20 07:09:30 CST --- https://github.com/sthalik/wine-hacks/tree/ati-catalyst-is-trash
You can modify the quirk to apply to nvidia, too.
This is interesting, do you know any other games with this issue?
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #6 from tizbac2@gmail.com 2013-02-20 07:13:28 CST --- LOST PLANET 2 that is still from capcom and uses same engine, LOST PLANET2 has also another extremely serious issue that makes it render all black after some frames
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #7 from tizbac2@gmail.com 2013-02-20 07:15:42 CST --- These games won't work without wine xlive implementation that you can find on http://github.com/tizbac/wine
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #8 from Stanisław Halik sthalik@misaki.pl 2013-02-20 07:17:10 CST --- That's very informative. Thank you! I'll get Stefan and Henri (CodeWeavers) to know that in fact many games have this issue.
BTW could you check out sthalik/wine-hacks on github?
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #9 from tizbac2@gmail.com 2013-02-20 07:25:40 CST --- I'm recompiling with map_buffer_range support commented out atm, if it solves it i'm thinking about measuring time taken compared to total frame time and switch to mapbuffer , it is very hacky , but if closed sources drivers won't fix that it is the only way
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #10 from Stanisław Halik sthalik@misaki.pl 2013-02-20 07:28:50 CST --- You don't have to comment out all map buffer stuff!
Add a quirk for your driver in dlls/wined3d/directx.c that sets gl_info->supported[ARB_MAP_BUFFER_RANGE] to FALSE and done.
http://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #11 from tizbac2@gmail.com 2013-02-20 08:01:11 CST --- Resident Evil 5 now runs much better, as soon i've finished testing games without map buffer range i'll try again with it to compare results
https://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #12 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over 700 days. Is this still an issue in current (1.7.36 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=31644
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #13 from joaopa jeremielapuree@yahoo.fr --- No news since 5 years. No download available. This bug can be closed as ABANDONNED.
https://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #14 from Stanisław Halik sthalik@misaki.pl --- FWIW, the issue is moot with the Radeon binary driver. Mesa is now of sufficiently high quality, not to mention gallium-nine.
Originally I was able to make a rejected patch with AMD-specific buffer pinning extensions, but it was reported that it caused artifacts in Morrowind at least.
In any case I recommend avoiding the AMD binary driver.
https://bugs.winehq.org/show_bug.cgi?id=31644
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #15 from mirh mirh@protonmail.ch --- AMD itself recommends avoiding the binary driver, if you haven't specific professional necessities.
Said this, AFAIK buffers were quite reworked in 2.1-2.3 by Henri (including some "stalling avoidance"). c1032e977bb9f850e3aea28dd79e3d7c2244cd6c instead may possibly explain some mesa-nvidia difference.
So my educate guess would be this got fixed. Otherwise anyway, for any issue still left with buffers, I always tend to point my finger towards bug 44315 and wine-pba.
https://bugs.winehq.org/show_bug.cgi?id=31644
--- Comment #16 from Stanisław Halik sthalik@misaki.pl --- I think this issue is moot by now given the maturity of Mesa drivers.
https://bugs.winehq.org/show_bug.cgi?id=31644
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|glMapBufferRange is |glMapBufferRange is |extremely slow while |extremely slow on Nvidia |playing Resident Evil 5 ( |binary drivers |happens only on nvidia | |binary driver ) | Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #17 from Matteo Bruni matteo.mystral@gmail.com --- I think we can close this bug.
https://bugs.winehq.org/show_bug.cgi?id=31644
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #18 from Matteo Bruni matteo.mystral@gmail.com --- Closing.