Added command line options to force windowed mode and to control GPU multi-threading.

This commit is contained in:
Bart Trzynadlowski 2012-02-11 16:40:09 +00:00
parent 1b8740165c
commit 35a47bc7e3

View file

@ -1233,10 +1233,13 @@ static void Help(void)
puts(""); puts("");
puts("Core Options:"); puts("Core Options:");
printf(" -ppc-frequency=<freq> PowerPC frequency in MHz [Default: %d]\n", g_Config.GetPowerPCFrequency()); printf(" -ppc-frequency=<freq> PowerPC frequency in MHz [Default: %d]\n", g_Config.GetPowerPCFrequency());
puts(" -no-threads Disable multi-threading"); puts(" -no-threads Disable multi-threading entirely");
puts(" -gpu-multi-threaded Run graphics rendering in separate thread [Default]");
puts(" -no-gpu-thread Run graphics rendering in main thread");
puts(""); puts("");
puts("Video Options:"); puts("Video Options:");
puts(" -res=<x>,<y> Resolution"); puts(" -res=<x>,<y> Resolution [Default: 496,384]");
puts(" -window Windowed mode [Default]");
puts(" -fullscreen Full screen mode"); puts(" -fullscreen Full screen mode");
puts(" -wide-screen Expand 3D field of view to screen width"); puts(" -wide-screen Expand 3D field of view to screen width");
puts(" -no-throttle Disable 60 Hz frame rate lock"); puts(" -no-throttle Disable 60 Hz frame rate lock");
@ -1366,6 +1369,16 @@ int main(int argc, char **argv)
n = 0; n = 0;
CmdLine.Set("Global", "MultiThreaded", n); CmdLine.Set("Global", "MultiThreaded", n);
} }
else if (!strcmp(argv[i],"-gpu-multi-threaded"))
{
n = 1;
CmdLine.Set("Global", "GPUMultiThreaded", n);
}
else if (!strcmp(argv[i],"-no-gpu-thread"))
{
n = 0;
CmdLine.Set("Global", "GPUMultiThreaded", n);
}
#ifdef SUPERMODEL_DEBUGGER #ifdef SUPERMODEL_DEBUGGER
else if (!strcmp(argv[i],"-disable-debugger")) else if (!strcmp(argv[i],"-disable-debugger"))
g_Config.disableDebugger = true; g_Config.disableDebugger = true;
@ -1431,6 +1444,11 @@ int main(int argc, char **argv)
CmdLine.Set("Global", "YResolution", y); CmdLine.Set("Global", "YResolution", y);
} }
} }
else if (!strcmp(argv[i],"-window"))
{
n = 0;
CmdLine.Set("Global", "FullScreen", n);
}
else if (!strcmp(argv[i],"-fullscreen")) else if (!strcmp(argv[i],"-fullscreen"))
{ {
n = 1; n = 1;