Search found 7 matches

by wendelscardua
Sun Jun 28, 2020 1:07 pm
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Re: Emulation speed vs actual NES speed

Hmm i see. It does indeed hang at that Minesweeper part. It doesn't look like JSNES has any debug functions that i can tell or know about; but, since its in Javascript, it is possible to run the Chrome step through debugger and see how the emulator is executing step by step. I'm not sure how far yo...
by wendelscardua
Sat Jun 27, 2020 11:45 am
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Re: Emulation speed vs actual NES speed

Well, since you're here, if you aren't using one of them them already, FCEUX and especially Mesen have great step through debuggers with breakpoints that support labeling with compilers like ASM6F. It sure beats Trace and Pray! https://pbs.twimg.com/media/EUF2V0VVAAYl2r0?format=png&name=large I'm c...
by wendelscardua
Sat Jun 27, 2020 9:22 am
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Re: Emulation speed vs actual NES speed

Sorry for bothering you people, I'm dumb, it was a bad ROM after all.

(I think it was the one I was using to try debugging a javascript NES emulator; said emulator would hang whenever I entered a specific minigame, so I had put lots of debug stuff on each frame, causing the slowdown)
by wendelscardua
Fri Jun 26, 2020 9:03 pm
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Re: Emulation speed vs actual NES speed

It worked fine on my Everdrive and 07 NTSC toaster. Fun game! Id love to see the concept more developed. https://i.imgur.com/BrgUcK6.jpg ...Are you running this on a European PAL NES by chance? I tried 50hz PAL mode in Mesen and it behaved like you described. I bought it recently, and it was advert...
by wendelscardua
Fri Jun 26, 2020 12:10 pm
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Re: Emulation speed vs actual NES speed

Yes, there may be some missed frames. In this game I rarely poll PPUSTATUS (only when loading a new nametable), but my main loop waits until an "nmis" counter changes (my nmi subroutine only refreshes OAM then increments this counter), which I suppose is prone to cause the same problem. No, the NMI...
by wendelscardua
Fri Jun 26, 2020 11:52 am
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Re: Emulation speed vs actual NES speed

Sounds like you may be polling PPUSTATUS to check for the end of a frame? That can cause missed frames, don't do that (outside of the boot code that waits one frame). Yes, there may be some missed frames. In this game I rarely poll PPUSTATUS (only when loading a new nametable), but my main loop wai...
by wendelscardua
Fri Jun 26, 2020 9:57 am
Forum: NESdev
Topic: Emulation speed vs actual NES speed (solved)
Replies: 16
Views: 1947

Emulation speed vs actual NES speed (solved)

Update: I'm dumb, my problem was an older, debug version of my ROM. Ignore this post. Hi, I've began learning NES dev for a few months, and my games were running mostly on emulators like Fceux and NintendulatorDX. But yesterday I finally got an old NES (and a few days before a flashcart for it) and...