GPU: Add cycle penalty for reloading CLUT

This commit is contained in:
Stenzek 2024-08-11 23:26:58 +10:00
parent 00a58eb4e5
commit db4e28f44c
No known key found for this signature in database

View file

@ -1458,6 +1458,7 @@ void GPU::UpdateCLUTIfNeeded(GPUTextureMode texmode, GPUTexturePaletteReg clut)
if ((clut.bits != m_current_clut_reg_bits) || BoolToUInt8(needs_8bit) > BoolToUInt8(m_current_clut_is_8bit))
{
DEBUG_LOG("Reloading CLUT from {},{}, {}", clut.GetXBase(), clut.GetYBase(), needs_8bit ? "8-bit" : "4-bit");
AddCommandTicks(needs_8bit ? 256 : 16);
UpdateCLUT(clut, needs_8bit);
m_current_clut_reg_bits = clut.bits;
m_current_clut_is_8bit = needs_8bit;