Perf: Detect idle loops by default

This commit is contained in:
Jeffrey Pfau 2015-01-20 23:26:48 -08:00
parent fc172147ee
commit 030f12e39f
1 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,11 @@ int main(int argc, char** argv) {
GBAConfigInit(&config, "perf");
GBAConfigLoad(&config);
struct GBAOptions opts = {};
struct GBAOptions opts = {
.idleOptimization = IDLE_LOOP_DETECT
};
GBAConfigLoadDefaults(&config, &opts);
struct GBAArguments args = {};
if (!parseArguments(&args, &config, argc, argv, &subparser)) {
usage(argv[0], PERF_USAGE);
@ -69,7 +73,7 @@ int main(int argc, char** argv) {
renderer.outputBuffer = malloc(256 * 256 * 4);
renderer.outputBufferStride = 256;
struct GBAThread context = { };
struct GBAThread context = {};
_thread = &context;
if (!perfOpts.noVideo) {