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

Fix stale palette references at startup #38

Open dextercd opened 1 year ago

dextercd commented 1 year ago

Fix stale palette references at startup.

Doesn't affect most games because they write to the attributes, Tuff is impacted by this because it's practically a DMG game that only uses a few GBC features. Since the game doesn't write to the attributes, the cache never fetches the palette references that are being updated.

*Tuff: https://github.com/BonsaiDen/Tuff.gb

Before:

20230923_01h14m12s_grim

After:

20230923_01h14m49s_grim