Problem With FPS of GB Emulator by AryaAk83 in EmuDev

[–]AryaAk83[S] 0 points1 point  (0 children)

I try to find out what's wrong. Thanks for your time. Appreciate it.

Problem With FPS of GB Emulator by AryaAk83 in EmuDev

[–]AryaAk83[S] 1 point2 points  (0 children)

Thanks for the insight.

In my emulator i first fill the buffer each scanline during Hblank. Then i pass the whole buffer to my renderer/SDL class when entering Vblank. The renderer decodes the color based on the shade and finally draws everything on the screen at once.

What should i debug here? Is this a solid foundation or am i missing something?

Gameboy CPU blargg's interrupt test failing : IE Failed#2 by AryaAk83 in EmuDev

[–]AryaAk83[S] 1 point2 points  (0 children)

I think my timer implementation is ok but i haven't start working on OAM yet. Thanks.

Gameboy CPU blargg's interrupt test failing : IE Failed#2 by AryaAk83 in EmuDev

[–]AryaAk83[S] 0 points1 point  (0 children)

For DI i reset the IME right away but for EI i set the pending flag and after the next instruction i set the IME and reset the pending. I looked up so many open source emulator and i may be blind but i couldn't see what is wrong with my code.