Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glitch after snapshot save and load #79

Open
leiradel opened this issue May 6, 2023 · 1 comment
Open

Glitch after snapshot save and load #79

leiradel opened this issue May 6, 2023 · 1 comment

Comments

@leiradel
Copy link
Contributor

leiradel commented May 6, 2023

Not sure what could be the cause, but saving the state and loading it back is causing a glitch in Tiny Dungeons. This is before saving:

image

When the state is loaded back, the player character goes away:

image

I can move it around and play normally, but it's invisible now. My load and save routines are pretty straightforward: evaluate the pointer offsets, and dump the zx_t structure after the magic number when saving, do the opposite when loading. It seems to be working just fine except for this glitch.

I decided to give this a try because the .z80 quick save that I have in a branch was also presenting the glitch, and I thought it could be related to the format not being able to capture the entire state of a Speccy emulator (a known limitation of the format). I tried the .z80 snapshot both compressed and uncompressed with the same result.

I tested with Fuse and it works ok.

Thanks in advance.

@leiradel
Copy link
Contributor Author

leiradel commented May 6, 2023

I'll try with other games tomorrow and see if something comes up.

Oh, I loved zx_display_info() returning a palletized image, now I can create a RGB565 framebuffer instead of a XRGB8888 and pass less data around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant