~rabbits/uxn5#5: 
State seems not to be fully reset between roms

Load dvd.rom Load cube3d.rom

Cube3d has some artifacts on the corners for some reason

Status
REPORTED
Submitter
~aw
Assigned to
No-one
Submitted
1 year, 5 months ago
Updated
1 year, 5 months ago
Labels
No labels applied.

~aw 1 year, 5 months ago

Same issue between dvd.rom and drool.rom

~remko 1 year, 5 months ago

I think there are 2 things that could happen when loading a rom:

  • Create a new emulator every time (which will also create new devices). However, the devices could rely on other external state (e.g. the DOM) which needs to be reset anyway.
  • Provide a reset() on the emulator, the core, and the devices, where everyone resets their own state. This is going to be more efficient, but maybe slightly more work.

~remko 1 year, 5 months ago

I just realized that the JS core resets state in load(). Makes sense, I need to do that as well in the wasm core.

Register here or Log in to comment, or comment via email.