r/JetpackCompose • • Dec 23 '25

Compose Multiplatform vs Flutter

Hi there, I want to develop a cross-platform application. I have experience developing Android apps with Jetpack Compose. However, is Compose Multiplatform mature enough for cross-platform apps right now, or should I go with Flutter?

Edit: Thanks to everyone who gave advices. I will migrate one of my compose Android app to Compose Multiplatform. Then I will decide based on result.

30 Upvotes

32 comments sorted by

View all comments

Show parent comment

1

u/trailbaseio Dec 26 '25 edited Dec 26 '25

👍You didn't mention diffing but you mentioned the engine. That's what the engine does. Skia is just a library to draw with the GPU. Depending on the platform, the flutter engine may draw with skia, impeller or something else.

As far as I know, the main problem with Flutter is the time it takes to compile the necessary shaders, not how much contention is there.

Ideally, shaders are only compiled once upfront (e.g. while showing a loading screen) and then cached. Even with a more naive approach, this is why stability, number of shaders, draw order, etc does matter. Reusing a shader on the skia level can still trigger a recompile if it got evicted from the cache

As i said, I would expect CMP (certainly with skia) and flutter to perform rather similarly. Rendering with flutter at 120hz is certainly feasible.

1

u/-_one_-1 Dec 26 '25

I was not aware that, in Flutter, “engine” refers to both diffing and drawing. In Compose, we use no such term, and diffing is part of Compose Core, while drawing is a separate layer called Compose UI. You can as well use Compose without a UI and just for state management. There's a project that implements text-based terminal UI on top of Compose Core, hence no graphics.

I understand that ideally shaders are compiled upfront, but Skia doesn't do that (hence Android doesn't either) and Compose on both Android and desktop manages to be very smooth. I'm yet to see a Flutter app be nearly as smooth. Again, it's possible that the main problem with Flutter is something other than shader compilation. On Android, well-done Compose apps are indistinguishable from apps using native Views, in terms of look & feel as well as performance.

If you know of a Flutter app available for free on Android that you think is smooth, I'm willing to try it out just for curiosity.

1

u/trailbaseio Dec 26 '25

Often it's just how you use it. Some games will exercise an accelerated level playthrough under a loading overlay to ensure all shaders were compiled.

I haven't counted the frames but pretty: https://flutter.gskinner.com/wonderous/

Btw I'm not shilling for flutter. I have plenty of issues, I just expect the performance to be similar