added fixed_framerate command line option
This commit is contained in:
@@ -493,6 +493,7 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
|
|||||||
// SYS_WriteCommandLineInt(syshandle, "vertexarrays",1);
|
// SYS_WriteCommandLineInt(syshandle, "vertexarrays",1);
|
||||||
bool properties = (SYS_GetCommandLineInt(syshandle, "show_properties", 0) != 0);
|
bool properties = (SYS_GetCommandLineInt(syshandle, "show_properties", 0) != 0);
|
||||||
bool profile = (SYS_GetCommandLineInt(syshandle, "show_profile", 0) != 0);
|
bool profile = (SYS_GetCommandLineInt(syshandle, "show_profile", 0) != 0);
|
||||||
|
bool fixed_framerate= (SYS_GetCommandLineInt(syshandle, "fixed_framerate", 0) != 0);
|
||||||
bool frameRate = (SYS_GetCommandLineInt(syshandle, "show_framerate", 0) != 0);
|
bool frameRate = (SYS_GetCommandLineInt(syshandle, "show_framerate", 0) != 0);
|
||||||
bool useVertexArrays = SYS_GetCommandLineInt(syshandle,"vertexarrays",1) != 0;
|
bool useVertexArrays = SYS_GetCommandLineInt(syshandle,"vertexarrays",1) != 0;
|
||||||
bool useLists = (SYS_GetCommandLineInt(syshandle, "displaylists", G.fileflags & G_FILE_DIAPLAY_LISTS) != 0);
|
bool useLists = (SYS_GetCommandLineInt(syshandle, "displaylists", G.fileflags & G_FILE_DIAPLAY_LISTS) != 0);
|
||||||
@@ -573,7 +574,7 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
|
|||||||
m_ketsjiengine->SetAudioDevice(m_audiodevice);
|
m_ketsjiengine->SetAudioDevice(m_audiodevice);
|
||||||
m_ketsjiengine->SetTimingDisplay(frameRate, false, false);
|
m_ketsjiengine->SetTimingDisplay(frameRate, false, false);
|
||||||
|
|
||||||
m_ketsjiengine->SetUseFixedTime(false);
|
m_ketsjiengine->SetUseFixedTime(fixed_framerate);
|
||||||
m_ketsjiengine->SetTimingDisplay(frameRate, profile, properties);
|
m_ketsjiengine->SetTimingDisplay(frameRate, profile, properties);
|
||||||
|
|
||||||
m_engineInitialized = true;
|
m_engineInitialized = true;
|
||||||
|
Reference in New Issue
Block a user