Skip to content

Commit

Permalink
Make NESEMU1 demo more reliable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jart committed Sep 22, 2024
1 parent e975245 commit d730fc6
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 134 deletions.
4 changes: 4 additions & 0 deletions examples/BUILD.mk
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ o/$(MODE)/examples/picol.o: private \
CPPFLAGS += \
-DSTACK_FRAME_UNLIMITED

o/$(MODE)/examples/nesemu1.o: private \
CPPFLAGS += \
-O3

o/$(MODE)/examples/picol.dbg: \
$(EXAMPLES_DEPS) \
o/$(MODE)/examples/picol.o \
Expand Down
Loading

0 comments on commit d730fc6

Please sign in to comment.