#Crash on Screen.MoveMainWindowTo
1 messages · Page 1 of 1 (latest)
DX12 is just in its infancy with Unity and there's a lot of crashes
Try DX11 until the issues are fixed
Don't most games use DX12 these days? Or am I mistaken?
DX12 is the default graphics backend in Unity as of 6.1 and was introduced in 2023.1
As far as graphics APIs go it's not all that old in Unity
It's likely an issue unique to the editor too.
Ah, I should clarify that this crash only happens when the game is built
Are you doing some custom rendering, using graphics command lists or anything else that could be related in the project? Or using third party assets/pluging that could be doing that?
Maybe using custom compute or other shaders?
No. It's crashing when using Screen.moveMainWindowTo repetitively
Are you making sure the previous async operation is complete before calling it again?
I am not, that could be it!
Yeah, that might be the cause. Though, I'd expect unity to provide some kind of feedback mechanism if that was the cause.
https://docs.unity3d.com/6000.1/Documentation/ScriptReference/Screen.MoveMainWindowTo.html
Maybe fill a bug report regardless of wether that fixes the issue or not
Switching to DX11 seems to have fixed the issue. I was reading somewhere that exclusive fullscreen support is not the same with DX12 as it is with DX11, could that be my issue?
I would like to use DX12 if possible
Yep. D3d12 is typically stricter and will crash sooner if you do something fishy. D3D11 is a bit lore forgiving in that sense.
Did you try making sure you're not calling that move method before the previous move is complete?
I need to test that tomorrow to see. I need to add more logs and isolate my test some more since I have other stuff running as well. Will report back