yigitakkok Posted November 4, 2015 Share Posted November 4, 2015 Hi, If I run my script with default unigine IG (main_x64.exe), I get 50 fps. If I run same script with my own IG, I get 26 fps. Everyting are same. Only IG's are different. My own IG's code: #include <Unigine.h> #include <UnigineConsole.h> #include <iostream> int main(int argc, char *argv[]) { Unigine::Engine *engine = Unigine::Engine::init(UNIGINE_VERSION, argc, argv); while (engine->isDone() == 0) { engine->update(); engine->render(); engine->swap(); } Unigine::Engine::shutdown(); return 0; } Debug values for 50 fps are: "C:/Users/muzaffer/Desktop/muzaffer/Unigine/bin/main_x64.exe" -video_app direct3d9 -video_fullscreen 0 -video_mode 6 -video_multisample 0 -data_path "../" -system_script "DHMI/unigine.cpp" -engine_config "../data/DHMI/unigine.cfg" -engine_log "../DHMI_log.htm" -editor_plugin framework/plugin/game_framework_plugin.cpp -sound_app "auto" -console_command "render_anisotropy 1 && world_load DHMI/DHMI" -extern_define ",LANGUAGE_EN,QUALITY_MEDIUM,EDITOR" -extern_plugin ",Interface" For 26 fps: start IG_x64d.exe -data_path "./" -video_app direct3d11 -video_fullscreen 0 -video_mode -1 -video_height 1050 -video_width 1680 -sound_app auto -system_script "./data/framework/game/game_system_script.cpp" -engine_config "./data/DHMI/unigine.cfg" -engine_log "./DHMI_log.htm" -extern_define "QUALITY_HIGH" -extern_plugin "Interface,IvecoPlugin" -extern_define "DEBUG" -console_command "render_anisotropy 0 && editor_quit" -game "./data/DHMI/DHMI.game" -game_level "autodrom" I have tried Medium quality, low quality etc. I think problem is about my own IG, but I cant find. Link to comment
silent Posted November 4, 2015 Share Posted November 4, 2015 Hi Yiğit, I can see few differences in your launch options already. For example, in your IG there are some parameters that can drop your performance a lot: -video_app direct3d11 (instead of direct3d9) - switch back to dx9 to get more performance G_x64d.exe (DEBUG build instead of RELEASE) - build release version instead of debug -video_multisample parameter is not defined (it can be AAx8) - pass 0 value to disable AA There is also different loaded world and some plugin IvecoPlugin that can affect on performance or can not affect (it is hard to say with currently provided information). You can also remove Interface plugin in release build if you don't need to create external UI windows. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
yigitakkok Posted November 5, 2015 Author Share Posted November 5, 2015 Building release version works. Thanks. Link to comment
Recommended Posts