torch2424 / wasmboy

Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
https://wasmboy.app/
GNU General Public License v3.0
1.39k stars 65 forks source link

Find a way to efficiently scale wasm memory #7

Open torch2424 opened 6 years ago

torch2424 commented 6 years ago

As suggested by ISSOtm:

Possible allocation strategy :

After referencing the Wasmboy memory map

torch2424 commented 6 years ago

Currently, the Memory is estimated to be about 9MB, which isn't much of a problem, because apparently the cap on wasm memory is 2 gigabytes

torch2424 commented 6 years ago

Honestly, if we throw the cartridge at the end of the memory map, then we can scale suuuuppeerrr easy. May want to do that, since the memory map already differs quite a but anyways, and won't require any more work from out memory mapps to find where everything else (Gameboy internals and Sprite map) should be based on the current bank

torch2424 commented 6 years ago

Updated Memory map accordingly in Wasmboy Memory Map Google Doc

torch2424 commented 6 years ago

See #50 for possible implmeentations