Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Sims 2 doesn't create a window on Windows 10 with D9VK on my Nvidia GTX 2080 #363

Closed
nelsonjchen opened this issue Sep 8, 2019 · 8 comments

Comments

@nelsonjchen
Copy link
Contributor

nelsonjchen commented Sep 8, 2019

The Sims 2 is one of those games where it seems compatibility with later versions of Windows and newer hardware such as my Nvidia 2080 is seriously faulty. I've tried the fixes proposed in some Sims 2 threads about compatibility but the game continues to eventually devolve into purple textures and other serious rendering errors with the stock DX9 implementation after some runtime. These errors looked a lot like the errors that users would get with WineD3D and The Sims 2. Eventually, these errors persist, and somehow brick The Sims 2 installation even after I wipe the save data folders. I think there's some weird incompatibility inside the DX9 support with the modern Nvidia drivers, Windows 10 and however The Sims 2 uses these. I think I've tried all the dances inside that thread I linked and nothing is stable or persistent.

I became aware of DXVK as a usable workaround for Hitman 2 DX11 crashes on Windows with Nvidia before they added native DX12. 🤔 ! Then I found this for DX9. And then @tannisroot posted an issue on The Sims 2 Wine Patches to run on Linux GitHub Repo showing that this particular DirectX 9 to Vulkan fork had progressed to the point where it was working very well for Linux users and working around the WineD3D issues!

I extracted the 32-bit DLLs to the game's folder and the game launches, stays running inside Task Manager, but no window appears. In the D9VK logs, I appear to be getting VK_ERROR_DEVICE_LOST errors.

https://gist.github.com/nelsonjchen/34c34dae85aae45e41018b584e6a8993#file-sims2ep9_d3d9-log-L118-L127

I provide a trace file below with the native DX9. I launched the game, a window appeared, I exited the game after the loading was completed.

For reference, I've been using these shortcut arguments: "C:\Program Files (x86)\Origin Games\The Sims 2 Ultimate Collection\Fun with Pets\SP9\TSBin\Sims2EP9.exe" -w -CPUCount:1

I've also tried telling the game to limit its texture memory to 1024MB.

image

Please let me know if I've missed anything, if more info/tracing is needed, or any other way I can help. I'm really eager to see if this will help the community's compatibility issues.

Software information

The Sims 2 Ultimate Collection on Origin
4GB Patch applied

System information

  • GPU: Nvidia 2080
  • Driver: 436.15.0
  • Wine version: Windows 10 1903
  • DXVK version: master.c434254b5f8211d913d102af9c756c87115a9d3c

Apitrace file(s)

Log files

@nelsonjchen nelsonjchen changed the title The Sims 2 doesn't launch on Windows 10 with D9VK The Sims 2 doesn't create a window on Windows 10 with D9VK Sep 8, 2019
@mozo78
Copy link

mozo78 commented Sep 8, 2019

The answer is simple - don't use Microsoft's garbage heap but Linux - win-win situation ;)
https://software.kaminata.net/linux-wine-games/the-sims-2-ultimate-collection-linux-wine/

@nelsonjchen
Copy link
Contributor Author

@mozo78 I seriously did consider doing that for myself. But I wouldn't have a reasonable answer for others and the best way to keep a game alive is to always have more people playing and enjoying it. We can't have game preservation just be some YouTube videos.

Seeing #306 made me decide to go ahead to collect data and post this issue.

@mozo78
Copy link

mozo78 commented Sep 8, 2019

More people can play it on Linux too. Nobody really needs Windows. It's just a nasty old habit.

@Joshua-Ashton
Copy link
Owner

Can you try the latest master builds?
https://git.froggi.es/joshua/d9vk/-/jobs
I fixed a NV-only regression recently which could cause device loss from a wonky shader.

@nelsonjchen
Copy link
Contributor Author

@Joshua-Ashton

https://gist.github.com/nelsonjchen/0fb8c410bc614af3358c8cf7f994e4bb

master@717d9c48

VK_ERROR_DEVICE_LOST , no window , and running in Task Manager still.

@nelsonjchen nelsonjchen changed the title The Sims 2 doesn't create a window on Windows 10 with D9VK The Sims 2 doesn't create a window on Windows 10 with D9VK on my Nvidia GTX 2080 Sep 8, 2019
@nelsonjchen
Copy link
Contributor Author

A commit has landed on master which now allows The Sims 2 to run by limiting max available memory: a5b0424

@nelsonjchen
Copy link
Contributor Author

nelsonjchen commented Sep 9, 2019

Please keep this issue open for a while. I want to test with 1.5GB of Max Available memory which I admittedly pulled out of my ass as a value to try. The new default of 3.5GB can enter the game but still crashes when entering some lots but the 1.5GB value seems to be very stable. Or should I make a new issue?

@Joshua-Ashton
Copy link
Owner

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants