the "right" timing for savestates?

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

User avatar
Zepper
Formerly Fx3
Posts: 3191
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: the "right" timing for savestates?

Post by Zepper » Thu Jan 17, 2019 10:14 am

WedNESday wrote:From what I've read, it does seem like a variable not being restored properly.
Nope, it wasn't. Just the wrong timing - must be saved at the end of the current instruction. Period.
I've never personally implemented savestates for WedNESday, so I've no experience with them. But shouldn't an emulator wait for the entire frame to finish before saving the savestate?
That's what I always did - scanline 240, right before the VBlank. It doesn't matter if it's saved before or after VBlank though.

Fiskbit
Posts: 77
Joined: Sat Nov 18, 2017 9:15 pm

Re: the "right" timing for savestates?

Post by Fiskbit » Thu Jan 17, 2019 10:49 am

I'm of the opinion that being able to save on a specific instruction is useful for debugging.

Post Reply