xenia-project / xenia

Xbox 360 Emulator Research Project
https://xenia.jp
Other
8.24k stars 1.14k forks source link

[DX12] System hangs on older GPUs #1221

Closed FateForWindows closed 5 years ago

FateForWindows commented 6 years ago

With the DX12 build, upon starting a game (in my case, Sonic '06 or Sonic Unleashed), the PC slows down to a crawl. This only seems to happen when the game is loading, and the point at which it gets to is not always consistent. E.g. in some cases, it reaches the title screen of '06, other times it doesn't even make it past the first loading screen. The game slows down to a crawl after the first loading screen. In Sonic Unleashed, it is consistently able to reach the loading screen after the Hedgehog Engine logo; after that, the PC hangs. Before the PC hangs, it slows down to a crawl for a few moments and the entire PC hangs shortly after. I am using build b77ffe3.

Game runs or Xenia crashes/Xenia hangs; Entire PC should not hang.

xenia.log

UPDATE: Thanks to recent commits Xenia has started working on many GPUs affected. Still waiting for more feedback before I close this issue.

MarcoEstevez commented 6 years ago

It happens the same here - ridge racer - when entering a race, having to entirerly boot my laptop

LuismaSP89 commented 6 years ago

@FateForWindows It sounds like a memory leak... did you try with other games or older builds of xenia (The latest build using vulkan) ?

MarcoEstevez commented 6 years ago

Latest vulkan doesn't has this behaviour, I also tested Daytona USA with same problem, it hangs to the point the only way to recover is hard reset the computer, that's why I did not test more titles

Ridge Racer, works fine during menus, but daytona freezes as soon as it boots.

4XPG commented 6 years ago

I'm having same issue with some games I tested on DX12 build (Armored Core 4, Armored Core For Answer, Ace Combat 6) using GTX960M

Perhaps mobile graphic cards aren't compatible with DX12 build?

Parovozik commented 6 years ago

XENIA-DX12 required powerfull GPU with 4GB VRAM just for start (or your PC will hangs on start any game)

FateForWindows commented 6 years ago

Vulkan doesn't have the same issue. My PC only has 2GB of VRAM so that makes sense.

Also, the issue seems to differ in the October Update. With the October update, the PC doesn't hang anymore; Xenia itself simply freezes.

Parovozik commented 6 years ago

I know what PC will hangs on Xenia-DX12 for GT640 2GB, GTX750ti 2GB and GTX760 2GB, but on Xenia-Vulkan they works is perfectly. Most likely your PC will hangs on any GPU with less than 4GB VRAM

LuismaSP89 commented 6 years ago

@Parovozik Hi Parovozik, and sorry for the offtopic, but... could you tell me how is the command to change language in xenia? I wanted for months to set spanish language in my games and I searched everywhere for the Xenia´s command line with no results, and I know you were developing a PR to do this. Thanks in advance, and sorry again for the offtopic.

4XPG commented 6 years ago

my GTX 960M has 4GB VRAM but it still hangs anyway image

Parovozik commented 6 years ago

@4XPG 960m = desktop gtx750ti GPU and they too weak for Xenia-DX12 anyway. As option there show summary shared memory (real 2GB) or just required full hardware dx12 support Example: bandicam 2018-10-05 05-16-21-893 We need more statistics, but for now I don’t know anyone who has it working on 2GB VRAM (very interesting about gtx1050 2GB and 1060 3GB) @LuismaSP89 Language selection only through internal variable, there is no way to control this beyond (through command line)

LuismaSP89 commented 6 years ago

@parovozik Uh, I see... what a shame... btw thanks a lot for your reply ^^

4XPG commented 6 years ago

@Parovozik ah yes, I get it. Thanks for the explanation.

Parovozik commented 6 years ago

@LuismaSP89 Latest xenia-dx12 (1.0.1419) with Spanish language as default https://dropmefiles.com/I8Ksy

LuismaSP89 commented 6 years ago

@Parovozik Thanks a lot man, let´s hope that the PR with the languages can be merged soon in order to let the users have a language selector :P

Triang3l commented 6 years ago

Caused by the usage of placed resources for render targets to reduce VRAM usage — something in broken in their implementation on older (resource heap tier 1) Nvidia GPUs, currently doing random things hoping something will make it stop hanging. Later I will switch to committed resources though to perform EDRAM load/store — which is currently the GPU bottleneck — less frequently, but the unavailability of render target height makes it a bit difficult (render targets would need 2560 height without AA and 5120 with AA possibly).

ghost commented 6 years ago

Same problem here with GTX Titan 6 GB (Kepler)

https://i.imgur.com/igvr6O3.png

xbox360pad commented 5 years ago

We need more statistics, but for now I don’t know anyone who has it working on 2GB VRAM (very interesting about gtx1050 2GB and 1060 3GB)

XENIA-DX12 was working fine on my old HD7950 3GB.

FateForWindows commented 5 years ago

DX12 branch is working on my 860M now.

Subarasheese commented 5 years ago

I can confirm DX12 now works on my GTX 760 (2gb).

ghost commented 5 years ago

Same problem here with GTX Titan 6 GB (Kepler)

https://i.imgur.com/igvr6O3.png

I have updated Xenia DX12 and it does not work :(

illusion0001 commented 5 years ago

@juaniglesiasag provide logs. also try updating your driver to the latest version.

FateForWindows commented 5 years ago

Same problem here with GTX Titan 6 GB (Kepler) https://i.imgur.com/igvr6O3.png

I have updated Xenia DX12 and it does not work :(

Just to be sure it's hanging or was hanging your whole computer, right?

ghost commented 5 years ago

@juaniglesiasag provide logs. also try updating your driver to the latest version.

Just to be sure it's hanging or was hanging your whole computer, right?

I have the latest version of the Nvidia drivers. Only Xenia freezes.

Screenshot of the fault and the log:

desktop screenshot 2018 12 02 - 21 22 11 04

xenia.log

Thanks for your help

LuismaSP89 commented 5 years ago

@juaniglesiasag I think your problem is related with this: https://github.com/xenia-project/xenia/issues/1251

You´re not the only one, but Triangle is working on a solution.

FateForWindows commented 5 years ago

@juaniglesiasag provide logs. also try updating your driver to the latest version.

Just to be sure it's hanging or was hanging your whole computer, right?

I have the latest version of the Nvidia drivers. Only Xenia freezes.

Screenshot of the fault and the log:

desktop screenshot 2018 12 02 - 21 22 11 04

xenia.log

Thanks for your help

Yeah, that's a different error than what the topic is about (the whole operating system hanging). Like Luisma said it's probably related to #1251 .

ghost commented 5 years ago

Before the update, Xenia crashes my computer completely. This problem has been resolved, now the problem is another... Thanks to all!