This library is just wrecking my google map, sometimes it freezes and crashes. I'm using the ripple and sometimes the ripples stutter then I have two ripples next to each other out of rhythm.
I also get an out of memory error sometimes: java.lang.OutOfMemoryError: Failed to allocate a 268435468 byte allocation with 16777216 free bytes and 184MB until OOM
Very cool library but it needs to be refactored when an emphasis on better memory management and performance.
gOverlays[0] = googleMap.addGroundOverlay(new
GroundOverlayOptions()
.position(latLng, (int) distance)
.transparency(transparency)
.image(BitmapDescriptorFactory.fromBitmap(backgroundImage)));
I mean does that create a bitmap every time you create an overlay?: BitmapDescriptorFactory.fromBitmap(backgroundImage) why not just do it once and store it in a variable?
This library is just wrecking my google map, sometimes it freezes and crashes. I'm using the ripple and sometimes the ripples stutter then I have two ripples next to each other out of rhythm.
I also get an out of memory error sometimes:
java.lang.OutOfMemoryError: Failed to allocate a 268435468 byte allocation with 16777216 free bytes and 184MB until OOMVery cool library but it needs to be refactored when an emphasis on better memory management and performance.
I mean does that create a bitmap every time you create an overlay?:
BitmapDescriptorFactory.fromBitmap(backgroundImage)why not just do it once and store it in a variable?