I tried to render a custom marker component on top of a map using the code from this blog post: https://www.codenameone.com/blog/map-layout-update.html But I am really dissapointed by the performances. On the simulator, the marker position completely lag out when moving the map. I thought it was due to the use of the nativebrowser in the simulator, that might affect performances. But when I tried on a real android device, it was slightly better but far from beeing fluid and acceptable in terms of user experience... When I compare with the performances achieved with the react-native community map component (https://github.com/react-community/react-native-maps), it is not even close. On react-native my custom markers (they are react-native dynamic views, not just images (if they where just images, they could be directly handled by the google map native api, wich would even increase performances), so they are really like CN1 components) are like glued to the map. As if they where part of the same image. When I move the map, these markers move with it in a perfectly fluid way. On the other hand, on CN1, with only one static marker (I did not change the blog code, so it is just a button fonticon), the marker position update is significantly delayed (with many markers it would probably be even worse...) I don't really understand what is the reason of such bad performances compared to react-native (as react-native adds an extra layer of communication between the react UI native thread and the javascript engine in charge of interpreting the markers view code to create a react native view component from it whereas in CN1 all is native, so it should be faster...) and how to improve it but this is really disappointing (
-- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/be410562-0c7f-473e-85fe-d51282eea39b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
