FCEUX PPU timing issue

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
User avatar
Eugene.S
Posts: 317
Joined: Sat Apr 18, 2009 4:36 am
Location: UTC+3
Contact:

FCEUX PPU timing issue

Post by Eugene.S »

Real hardware and accurate emulators, like mesen/punes/nintendulator/nestopia
shows this timing roms values exactly as this screenshots:

Tepples overclock demo ROM
240pee, cpu speed

But cycles/line and cpu speed shows a bit lower values on FCEUX.
RockNES and BizHawk had same issue, but it's fixed for now.
Zepper wrote:"Probably the test ROM uses sprite zero hit, or overflow, to measure the timing. The only change was to avoid the sprites to evaluate on pre-render scanline."
Is this sprite evaluation bug?
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: FCEUX PPU timing issue

Post by tepples »

Yes.

The overclock test measures time between sprite overflow and sprite 0 in CPU cycles. Because FCEUX's sprite evaluation timing isn't perfect, the time between sprite overflow and sprite 0 differs from the authentic PPU.
User avatar
Zepper
Formerly Fx3
Posts: 3262
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: FCEUX PPU timing issue

Post by Zepper »

@Eugene.S
Care to provide the link of my quoted post? I'm not finding it.
User avatar
Eugene.S
Posts: 317
Joined: Sat Apr 18, 2009 4:36 am
Location: UTC+3
Contact:

Re: FCEUX PPU timing issue

Post by Eugene.S »

Zepper, it's here:
Image

BTW, i've posted it to bugtracker, but really doubt anyone fix it.
Which games (in theory) may be affected by this bug?
Or this bug manifest only on timing roms, so don't need care about fix it?
User avatar
Zepper
Formerly Fx3
Posts: 3262
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: FCEUX PPU timing issue

Post by Zepper »

Oh, it was a private message. :shock: :D :lol: :lol:
Post Reply