Skip to content

Commit d730fc6

Browse files
committed
Make NESEMU1 demo more reliable
This program was originally ported to Cosmopolitan before we had threads so it was designed to use a single thread. That caused issues for people with slower computers, like an Intel Core i5, where Gyarados would go so slow that the audio would skip. I would also get audio skipping when the terminal was put in full screen mode. Now we use two threads and smarter timing, so NESEMU1 should go reliably fast on everyone's computer today.
1 parent e975245 commit d730fc6

File tree

2 files changed

+125
-134
lines changed

2 files changed

+125
-134
lines changed

examples/BUILD.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ o/$(MODE)/examples/picol.o: private \
150150
CPPFLAGS += \
151151
-DSTACK_FRAME_UNLIMITED
152152

153+
o/$(MODE)/examples/nesemu1.o: private \
154+
CPPFLAGS += \
155+
-O3
156+
153157
o/$(MODE)/examples/picol.dbg: \
154158
$(EXAMPLES_DEPS) \
155159
o/$(MODE)/examples/picol.o \

0 commit comments

Comments
 (0)