fengb / fundude

Gameboy emulator: Zig -> wasm
https://fengb.github.io/fundude/
MIT License
180 stars 8 forks source link

Add ghosting #29

Closed fengb closed 4 years ago

fengb commented 4 years ago

The Gameboy had infamously bad refresh rates due passive matrix rendering. There are actual games that relied on this hardware quirk, like Chikyuu Kaihou Gun ZAS

Brainstormed a few implementations:

  1. Multiple images / canvases with rotating src and CSS opacity transitions.
  2. Soft "refresh" the canvas per draw instead of full clear.
fengb commented 4 years ago

Technical details: passive matrix has a response time of >100ms. I think we can emulate this by subtracting the light level per frame.

@ ~8 frames of fade, subtract 12.5% per pixel.

fengb commented 4 years ago

Closed via 2281a3776e3a98aa385c51fa60557dec40d9fb2a