flutter-vector-map-tiles icon indicating copy to clipboard operation
flutter-vector-map-tiles copied to clipboard

render raster tiles using dart_ui_isolate

Open greensopinion opened this issue 1 year ago • 4 comments

currently experimental

greensopinion avatar Nov 17 '24 22:11 greensopinion

Hey, excited to see a little bit of experimentation with this! As you might already have realised, this really does not like Impeller. Testing on a modern mid-budget end Android device. To the point where it will just crash out. With Skia, it does seem to have improved performance when panning, but trying to load new tiles is still janky. It seems like it's not trying to use another thread? Maybe I'm just doing something wrong or misunderstanding.

https://github.com/user-attachments/assets/361d2f14-56e7-45b7-ab48-ccc43212ccf1

JaffaKetchup avatar Jan 08 '25 17:01 JaffaKetchup

Thanks for giving it a try @JaffaKetchup

As you might already have realised, this really does not like Impeller. Testing on a modern mid-budget end Android device. To the point where it will just crash out.

That's not my experience! Any indication on why the crash occurred?

With Skia, it does seem to have improved performance when panning, but trying to load new tiles is still janky. It seems like it's not trying to use another thread? Maybe I'm just doing something wrong or misunderstanding.

I'm not sure why you're seeing those results. It doesn't correlate at all with my observations, I wonder what's going wrong. Why do you mention Impeller vs Skia?

greensopinion avatar Jan 08 '25 23:01 greensopinion

Interestingly, it doesn't seem to crash anymore, and is maybe a bit less laggy than Skia? Not sure what is going on there, maybe I'll try again later.

I say Impeller vs Skia because there could be significant performance differences I think, with this sort of stuff. What I haven't tried is this PR vs old raster layer.

However, it does cause some artifacts (I believe they've already been reported): Screenshot_2025-01-09-00-33-01-144_com.example.vector_map_tiles_example.jpg

JaffaKetchup avatar Jan 09 '25 00:01 JaffaKetchup

Hey, finally I was able to test this too. On an iPhone 13 Pro I got about 15 fps more. On a Pixel 7 there was unfortunately no difference in fps. Also, I did not encounter any artifacts! :)

LeonP2ER avatar Feb 20 '25 12:02 LeonP2ER

obsolete now we're using flutter_gpu. See https://github.com/greensopinion/flutter-vector-map-tiles/tree/10.0.0 for details

greensopinion avatar Sep 25 '25 02:09 greensopinion