https://bugs.winehq.org/show_bug.cgi?id=45361
Bug ID: 45361 Summary: Graphical issues in The Sims 3 (regression) Product: Wine Version: 3.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: sashok.olen@gmail.com Distribution: Ubuntu
Created attachment 61662 --> https://bugs.winehq.org/attachment.cgi?id=61662 terminal output (no +d3d_shader)
Setting High Detail Lots to any level above 1 results in very annoying graphical issues on non-household lots and when moving through buildings. It is also present with all options turned down to minimum but it's just easier to reproduce with High Detail Lots set to level 4 and moving through buildings. I can reproduce this bug in version 2.10 and higher but can't in 2.6 and 2.0.2, so it must be a regression. Not sure about versions between 2.6 and 2.10 as I get an error when compiling those, but I suspect the regression happened in 2.9 due to introduced tessellation. Attaching terminal output (without WINEDEBUG argument) from 3.10 (devel), screenshot of the problem and terminal output with WINEDEBUG=+d3d_shader (raw file is almost 1GB so i compressed it into tar.xz). I am using Ubuntu 18.04 (64 bit) with NVidia GTX 1070 using proprietary version 396.24.02 driver.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #1 from Alexandr Oleynikov sashok.olen@gmail.com --- Created attachment 61663 --> https://bugs.winehq.org/attachment.cgi?id=61663 Screenshot 1 (moving through building)
Adding screenshot #1.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #2 from Alexandr Oleynikov sashok.olen@gmail.com --- Created attachment 61664 --> https://bugs.winehq.org/attachment.cgi?id=61664 Adding screenshot 2
Adding screenshot #2
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #3 from Alexandr Oleynikov sashok.olen@gmail.com --- Terminal output (with +d3d_shader) in an archive: https://yadi.sk/d/fjES7NGc3YFuzk Uncompressed size - roughly 924MB Compressed size - 6.8 MB.
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Graphical issues in The |Polygon explosion in The |Sims 3 (regression) |Sims 3 (regression)
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Polygon explosion in The |Model artifacts on high |Sims 3 (regression) |settings in The Sims 3 | |(regression)
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Model artifacts on high |Polygon explosion on high |settings in The Sims 3 |settings in The Sims 3 |(regression) |(regression)
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |directx-d3dx9
https://bugs.winehq.org/show_bug.cgi?id=45361
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3dx9 |directx-d3d
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #4 from Alexandr Oleynikov sashok.olen@gmail.com --- Seems like the same issue happens with swimming pools located outside of the household lot, so on any public lot, and even with all graphics options turned to minimum. Terminal output with just +d3d in a compressed archive: https://yadi.sk/d/d9i2oJ163YQ9Um Uncompressed size: 4.4 GB. Compressed size: 34.4 MB.
https://bugs.winehq.org/show_bug.cgi?id=45361
Matthew Reed wine@zootal.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@zootal.com
--- Comment #5 from Matthew Reed wine@zootal.com --- I just found this bug (thanks Alexandr!). I get the *exact* same thing. I first saw this several years ago - like maybe five years ago(?). I saw it last just a few weeks ago. I think I was using Wine 3.6 at the time, but it might have been 2.19. I've seen it off and on with quite a few older version of wine, this is a very old problem. I never bothered to report it because I've never been able to reliably duplicate it. I honestly have no idea what triggers it.
I will pay attention and see if I can get it to act up and maybe get a log file and a few screen shots, if that will help any.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #6 from Alexandr Oleynikov sashok.olen@gmail.com --- I have describes in the bug report that the most reliable way to reproduce the problem js set “High Detail Lots” to level 2 or higher and move the camera through some building, preferably skyscrapers in Bridgeport, but I think it works with regular houses too. I have also found it to appear when zooming on the swimming pools, or whatever is built using swimming pool tiles. I am not sure if the latter works in other towns though, but I can always see the polygon explosion when zooming on “founntains” on the science plant lot in Bridgeport. If you want to play without this issue, I would suggest running it using wine 2.0.2, you can use it with a wine wrapper like Lutris.
https://bugs.winehq.org/show_bug.cgi?id=45361
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- The better way to see this bug fixed is to perform a regression test: https://wiki.winehq.org/Regression_Testing
Other talks is quite useless.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #8 from Alexandr Oleynikov sashok.olen@gmail.com --- I made an apitrace that shows the issue: https://yadi.sk/d/DB22CXV6BmNeuA As before, I see the glitches, but an AMD user has reported that they don’t see any graphical issues when replaying this trace (I do though, have NVidia with 396.54 driver). Can’t unfortunately find any precompiled old wine builds to do some regression testing, but I will keep looking. But I really hope the apitrace may help.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #9 from Alexandr Oleynikov sashok.olen@gmail.com --- I can't confirm this for sure, as I wasn't the person doing regression testing as my distro can't run these old versions anymore, but it seems like the issue appeared in 2.7.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #10 from Alexandr Oleynikov sashok.olen@gmail.com --- Disregard my last comment: I did proper regression testing with bisect and the bad commit turned out to be: 6823abd521c0c12d20d9171fb5ae8b300009d082 is the first bad commit commit 6823abd521c0c12d20d9171fb5ae8b300009d082 Author: Józef Kucia jkucia@codeweavers.com Date: Mon Feb 27 13:42:00 2017 +0100
wined3d: Add quirk for Nvidia viewport subpixel bits bug.
Signed-off-by: Józef Kucia jkucia@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
:040000 040000 50029e1c012d3dc6c52b4996d850ac1271f2498e 88caaf1e23d6ed9b93e6e2290999a5a32b6266f0 M dlls
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45361
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |6823abd521c0c12d20d9171fb5a | |e8b300009d082
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Polygon explosion on high |Texture explosion in The |settings in The Sims 3 |Sims 3 |(regression) |
https://bugs.winehq.org/show_bug.cgi?id=45361
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #11 from Józef Kucia joseph.kucia@gmail.com --- It might be the case that this bug will be fixed only if Nvidia fixes the "negative viewport coordinates" bug.
https://bugs.winehq.org/show_bug.cgi?id=45361
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Texture explosion in The |Texture explosion in The |Sims 3 |Sims 3 (Nvidia negative | |viewport coordinates quirk)
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #12 from Alexandr Oleynikov sashok.olen@gmail.com --- Does that bug a have bug report somewhere? Do we know if it’s still not fixed? I do not experience any issues at least with this game whatsoever on 390 with 2.0, which doesn’t have this quirk.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #13 from Józef Kucia joseph.kucia@gmail.com --- (In reply to Alexandr Oleynikov from comment #12)
Does that bug a have bug report somewhere? Do we know if it’s still not fixed?
The bug was reported to Nvidia. Presumably, there is a bug report in the non-public Nvidia bug tracker. The bug is still not fixed. The viewport subpixel bits quirk is activated only when the bug is detected, see match_broken_viewport_subpixel_bits() in wined3d.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #14 from Józef Kucia joseph.kucia@gmail.com --- It would be also somehow interesting to confirm that the bug is also present in Wine 1.9.20 or older, i.e. before a5d2b3622b7b4f731075d9cd62c76c64c468666b.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #15 from Alexandr Oleynikov sashok.olen@gmail.com --- The game seems to have pretty good reports even with versions like 1.5. But I could try to run this particular apitrace under 1.9.20. Kind of weird how the quirk gets triggered yet the game has no issues running without it whatsoever.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #16 from Alexandr Oleynikov sashok.olen@gmail.com --- Created attachment 62624 --> https://bugs.winehq.org/attachment.cgi?id=62624 revert-quirk
Anyway, I made a patch that gets rid of the problematic commits and so far the sims 3 runs great. Maybe somebody else will find it useful for some other game that has a similar issue.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #17 from Alexandr Oleynikov sashok.olen@gmail.com --- NVidia released a new driver version (415.13), and the changelog contains this: `Fixed an OpenGL driver bug that caused the upper bounds of floating-point viewports, specified through the ARB_viewport_array extension, to be clipped incorrectly.` Is this the bug the quirk was made for?
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #18 from Alexandr Oleynikov sashok.olen@gmail.com --- Seems like it is fixed in 415.13.
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #19 from Alexandr Oleynikov sashok.olen@gmail.com --- The bug has been fixed upstream. Should it be closed then?
https://bugs.winehq.org/show_bug.cgi?id=45361
Alexandr Oleynikov sashok.olen@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|NEW |RESOLVED
--- Comment #20 from Alexandr Oleynikov sashok.olen@gmail.com --- Fixed in Nvidia driver since version 415.13 and newer.
https://bugs.winehq.org/show_bug.cgi?id=45361
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #21 from Austin English austinenglish@gmail.com --- (In reply to Alexandr Oleynikov from comment #20)
Fixed in Nvidia driver since version 415.13 and newer.
Fixed upstream, closing.
https://bugs.winehq.org/show_bug.cgi?id=45361
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45361
--- Comment #22 from Józef Kucia joseph.kucia@gmail.com --- I also confirmed that this bug was present before we started using ARB_clip_control.