punesemu / puNES

Qt-based Nintendo Entertaiment System emulator and NSF/NSF2/NSFe Music Player (Linux, FreeBSD, OpenBSD and Windows)
GNU General Public License v2.0
663 stars 42 forks source link

Falsion stutter #284

Closed Skalt711 closed 1 year ago

Skalt711 commented 1 year ago

Falsion, a Famicom Disk System game, experiences a stutter of random length that can happen at any moment during gameplay. Task Manager shows no anomaly. Normally the game has no stutter.

Skalt711 commented 1 year ago

Going to correct myself, the slowdown emulation is wrong in Falsion. Normally the game will just run at a reduced speed while keeping music at full speed, but puNES emulates much more slowdown that stops the music - it's counted towards the lag counter. https://www.youtube.com/watch?v=BC7dIw2YXqs

punesemu commented 1 year ago

Hi Pippo, thanks for reporting. Can you take a test? Try disabling the option "Use fast forward when loading the disk/side" on the General Settings page and tell me if this fixe the problem. If so, I know where to start looking.

Skalt711 commented 1 year ago

I'm not Pippo (I'm skalt711) and yeah, disabling fast forward fixes the issue. Increasing the amount of postrender scanlines happens to work around the issue as well.

punesemu commented 1 year ago

I'm not Pippo (I'm skalt711)

I apologize skalt711, in addition to answering you I was writing two emails that contained many names and I got confused.

Increasing the amount of postrender scanlines happens to work around the issue as well.

Thanks for the further information. I'll let you know as soon as I figure out what's causing the problem.

punesemu commented 1 year ago

I think I understand what the problem could be, could you try with this version by enabling the option and disabling the postrender scanlines?

P.s. this is a D3D9 64bit version.

Skalt711 commented 1 year ago

The custom version likely emulates the slowdown correctly, but instead of waiting to render a frame, it skips it altogether by duplicating the previous frame, then renders the next one as if there are extra postrender scanlines. I forgot that the music is always disabled when you fast forward. https://www.youtube.com/watch?v=Vkei1srAXm4

P.S.: Ignore the player ship sprite suddenly appearing on the right side, Falsion uses a custom sprite routine not found in other Konami games.

punesemu commented 1 year ago

I had health problems and could not continue to investigate the problem but now I can resume.

punesemu commented 1 year ago

Sorry for the long silence, can you try this version?

Skalt711 commented 1 year ago

Can confirm that the issue is fixed at last.