pebri86 / esplay-retro-emulation

Retro Emulation Collection for ESPlay Hardware, an ESP32 based game console
https://www.makerfabs.com/esplay-micro.html
MIT License
452 stars 89 forks source link

possible optimization to avoid psram for gnuboy #32

Closed fariouche closed 2 years ago

fariouche commented 2 years ago

Hello,

I see that you have 2 modes to load the ROM... one directly from an sdcard file to PSRAM, and the other is directly flashing a partition. (gnuboy) I don't know if you a using PSRAM elsewhere, but for the case where you load from a partition, do you now that you can avoid to copy to PSRAM and directly mmap the partition? look at esp_partition_mmap() function. Of course, the address will be read-only.

cheers

pebri86 commented 2 years ago

Yes, it's possible to do that. Also see my other repo of pocketsprite clone, it using esp32 without psram and mmap directly from flash partition

fariouche commented 2 years ago

awesome! thanks ;-)