Frankly, I don't think the UI being slow has anything to do with the immediate or retainer mode choice. Especially because Compose is partially in immediate mode as well. I think many of the animations of most apps are still in immediate mode.
To me it is about thread prioritization, which is usually terrible in most apps, sys calls that are usually super slow, and easy libraries that need to do a lot of work to render.
For instance, Compose's Text element is a full HTML renderer. The text devs pass to it needs to be parsed before rendering. That doesn't need to be there for most apps, but it is. Things like that is where CPU cycles are going, not the UI mode choice. Compose's UI graph walk to figure out what changed for rendering is indexed, so it easily goes into the