aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-12-04 06:13:35 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-12-04 06:13:35 +0000
commit4592509f18e44d6302fe3fd7ad69974beb00b749 (patch)
tree6706292813fc52e8926df8be9a8e37058ba1b9ae
parent1a8eb05835ecaa0a9c07d16cfa4d8c1adec37d2d (diff)
speed up
-rw-r--r--emu.c2
-rw-r--r--gui.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/emu.c b/emu.c
index 71d9488..4760f3c 100644
--- a/emu.c
+++ b/emu.c
@@ -528,7 +528,5 @@ step(struct context *c)
}
}
- usleep(10 * cycle); /* 100kHz */
-
return cycle;
}
diff --git a/gui.c b/gui.c
index 9a4dd06..fd333e9 100644
--- a/gui.c
+++ b/gui.c
@@ -193,7 +193,7 @@ guiemu(struct context *c)
loadfont(c->mem, "font.xpm");
while ((cnt = step(c)) != -1) {
- if ((n += cnt) < 100)
+ if ((n += cnt) < 1000)
continue;
gettimeofday(&tv, NULL);