Skip to content

Cool library but very unacceptable performance #10

@roman-ku

Description

@roman-ku

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions