Search the Community
Showing results for tags 'dx12'.
-
Engine Crashes When Soft-Restarting The Engine With Shutdown() And Init()
sidneytowers posted a topic in Bug Reports
This is an issue with DirectX12 and Vulkan only, presumably due to their multi-threaded rendering implementation. With the following code within the main function, the engine properly resets with DirectX11, but crashes for both DirectX12 and Vulkan, but with different crash errors as can be seen after the main code in this post. As hinted at, these kinds of crashes or freezes do not occur with DirectX11, which restarts as it should. // const Engine::InitParameters init_parameters; // UnigineLogic AppSystemLogic system_logic; AppWorldLogic world_logic; AppEditorLogic editor_logic; // init engine Unigine::EnginePtr engine(init_parameters, argc, argv); // RestartEngine: // enter main loop engine->main(&system_logic, &world_logic, &editor_logic); // if (IsResetting) { IsResetting = false; engine.shutdown(); engine.init(init_parameters, argc, argv); goto RestartEngine; } // return 0; Vulkan: Assertion failed: index < size_t(length) && "Vector::operator[]: bad index", file D:\BA\work\fb3821776bc41fe5\include\UnigineVector.h, line 1085 DirectX12: Usually freezes, but occasionly crashes with the following error instead: Unhandled exception (Access Violation Executing Location 0x00000245C7A42840) thrown in RenderShadows::CPUShaderRenderShadowsAsync::process(int thred_num, int threds_count) Line 2271 -
Hi Unigine team, Please see the pictures, according to my system hardware specs, in SDK browser version 2.0.5, I have selected & applied DirectX 12 and Vulkan but still run DirectX 11 in Unigine 2.16??!! why does not work!? Is support my graphics card DirectX 12 & Vulkan API ??