libretro / pcsx_rearmed

ARM optimized PCSX fork
GNU General Public License v2.0
168 stars 120 forks source link

libpcsxcore: Add database for Lightrec hacks #757

Closed pcercuei closed 1 year ago

pcercuei commented 1 year ago

And add entries for the infamous Formula One games.

These games do tricks with the instruction cache that are hard to emulate properly in an interpreter, and almost impossible in a dynamic recompiler.

Funnily enough, emulating the CPU less accurately by only invalidating cached code on DMA writes and never on CPU writes make these games work.

These hacks will also make Lightrec generate faster code, but they are unsafe by nature, and that's why they are conditionally enabled.