When patching single colors in the palette (for instance for transparency) the current API requires the surrounding palette colors to be captured and held allocated until the end of the frame. This means there need to be as many active copies of the patches with other colors copied in as there are blits. This also leads to a combinatorial explosion, if pal entry 0 needs to be patched but colors around pal[0] change every change needs to have an active copy until the frame is done.
It woudl be good to scope the TLUT operation to just 1 color that needs to be update.
When patching single colors in the palette (for instance for transparency) the current API requires the surrounding palette colors to be captured and held allocated until the end of the frame. This means there need to be as many active copies of the patches with other colors copied in as there are blits. This also leads to a combinatorial explosion, if pal entry 0 needs to be patched but colors around pal[0] change every change needs to have an active copy until the frame is done.
It woudl be good to scope the TLUT operation to just 1 color that needs to be update.