libretro / beetle-supergrafx-libretro

Standalone port of Mednafen PCE Fast to libretro. This one only emulates a SuperGrafx TG-16.
GNU General Public License v2.0
22 stars 31 forks source link

Avoid malloc & memcpy in retro_serialize #131

Closed neil4 closed 1 year ago

neil4 commented 1 year ago

Improves Preemptive Frames and RunAhead performance by saving states directly to the passed-in buffer.

If the passed-in size is too small, MDFNSS_SaveSM will now malloc separate memory to complete the save, then retro_serialize frees it and returns false.

similar to libretro/beetle-saturn-libretro#18