Join Nostr
2024-08-13 17:38:22 UTC
in reply to

Dave Anderson on Nostr: An easy hack: palette ram is in vram with a base addr, and at the start of each ...

An easy hack: palette ram is in vram with a base addr, and at the start of each frame, stream 256 entries out from vram into the dedicated palette output ram before pixel painting starts. Palette writes only take effect on the following frame, effectively. Increases memory cost (have to store the palette twice), but the dead time during vsync should be plenty to do the copy without getting in the way of CPU access. Maybe that works... Unsure, will ponder!