zeta0134 / LuaGB

A gameboy emulator written in pure Lua. Work in progress.
BSD 3-Clause "New" or "Revised" License
411 stars 35 forks source link

The LuaJIT cache should be flushed when starting a new game #14

Open zeta0134 opened 5 years ago

zeta0134 commented 5 years ago

As suggested by @lukego in https://github.com/zeta0134/LuaGB/pull/13

For LuaJIT enabled platforms, it makes sense to trigger a cache flush when starting a new game, as each game will probably have varying performance characteristics. This should also help performance profiling be a little more consistent, as the speed in theory shouldn't be affected as much by past emulator state.