-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Look into bringing back SurfaceView #5000
Comments
@tmpsantos @brunoabinader looking through some SDK code, I'm also seeing the class |
Yes, that is the one we should give a try IMO. Seems like we could remove a lot of code we use today for creating/destroying display/surface/context/etc if we use that and get rendering on a separated thread for free. The challenge I see is that all the UI events come from - obviously - the UI thread. We need to forward them to the |
Hi, I've downgraded to v4.0.1 which is better for performances, but not as good as Google Maps for example. I haven't seen github issues with the beta but I assume you are working on it ? Finally, I've decided to apply the patch (f290bf4) from @tobrun but on the top of the v4.0.1. Performances are really amazing ! I can forward a test apk if needed. SurfaceView seems to be be the way to go for performances. Thanks ! |
I have been looking into implementing the GLSurfaceView approach in the last few weeks. While I was able to get parts of the code running (setup glContext and display).. I was' t able to render or send notifications from core (mapchange events) back to the android binding. This as indicated by @tmpsantos will require some extra plumbing. I will keep on looking into this issue in next weeks and see if we can migrate. As mentioned by @adogor, there is already a branch with a working SurfaceView. We still prefer moving to the GLSurfaceView since it will automise the process of setting up GL (context,display) and move drawing to a seperate Renderer object. |
Since a migration to If it is possible to migrate to a standard |
@justasm that is a good idea. I'm currently looking into suggested approach and I identified 2 issues:
|
SurfaceView has been merged to master with 99a4850. |
I have been working on the GLSurfaceView the latest 2 days and I identified the following issue: After disabling the map change events in total. I'm running into not being able to properly load a style (401). Loading up a style locally works but after a couple of render calls it also crashes. Symbolicating the stacktraces shows:
|
Per internal discussion we're going to revert the The good news though is that this issue appears to be resolved in the upcoming Android Nougat release (see quote from Google below). The bad news is it'll be awhile before the Nougat is 1) actually released officially by Google and 2) the market share of Nougat on people's devices is actually significant.
|
The team has spent some time since Wednesday (July 20th) looking into ways to solve the Navigation Drawer issue (see #5738) and communicating about other issues that we've found with The Way Forward Work on Known Blocking Issues
|
For improved performance, we're shipping |
Currently on Android we are using a TextureView in favor of SurfaceView. @brunoabinader and @tmpsantos mentioned to look into moving it back to SurfaceView for performance reasons (Qt is using similar concept).
History behind the initial move from SurfaceView -> TextureView in #2244.
The text was updated successfully, but these errors were encountered: