cinetec_tech Posted November 26, 2015 Share Posted November 26, 2015 hello, today I updated the engine to version 2.1. I wrote a simple program as following: Unigine::EnginePtr engine(UNIGINE_VERSION, argc, argv); Console *console = Console::get(); console->run("world_load test\test"); console->flush(); engine->main(); Engine::shutdown(); the program can run with no problem, but as I start diagnostic tools under visual studio 13. There is an error occurred and the program broke in this red line: void D3D11AppWindow::swap_window(void **data) { if(app->device == NULL) return; if(D3D11Ext::error(app->device->GetDeviceRemovedReason())) { Log::error("D3D11AppWindow::swap_window(): device removed\n"); destroy(); destroy_context(data); create_context(data); return; } swap(); if(app->swap_chain->Present((getFlags() & VSYNC) ? 1 : 0,0) == DXGI_STATUS_OCCLUDED) { stopFps(); Timer::usleep(100000); startFps(); } } In 2.0 I can use the diagnostic debug tool with no problem. can you give me some advice? do you have the same problem? with what tools do you debug unigine? I am very thankful Link to comment
unclebob Posted November 26, 2015 Share Posted November 26, 2015 Hi there, Сinetec! Try to add -video_debug 1 as startup argument. Link to comment
Recommended Posts