Build on auto-sync and only mark window dirty on palette changes and let the event handler do the actual draw.