Skip to content

Conversation

@ahmedre
Copy link

@ahmedre ahmedre commented Nov 16, 2025

Instead of using the texture view based map and taking images of the map every frame, this patch directly renders using Android's Presentation class that is mentioned in the documentation. It sets up an Android VirtualDisplay and wires the surface to it, and then directly presents MapView on it. This ends up being a lot more performant than the existing approach.

Instead of using the texture view based map and taking images of the map
every frame, this patch directly renders using Android's Presentation
class that is mentioned in the documentation. It sets up an Android
VirtualDisplay and wires the surface to it, and then directly presents
MapView on it. This ends up being a lot more performant than the
existing approach.
@ahmedre
Copy link
Author

ahmedre commented Nov 16, 2025

Details of this implementation in my blog post here. From within our apps, the texture implementation gives ~8.26fps, whereas this one does ~34.66fps.

@louwers
Copy link
Member

louwers commented Nov 16, 2025

cc @frankkienl @thanhdang198 @grab-liyanjin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants