Skip to content

Is there way to "perfectly" collect garbages for decoded audios between navigations #822

@Slavezax

Description

@Slavezax

Hi!

I have an app that is always loading 5x audio files to play in sync. All audio files are 5-10 minutes long. So it's easily eating 1gb of ram after decode. This is ok, works well without problems. But when i quit from a project, i see memory usage only downgrades %20-30 at most. So eventually, it adds up if i surf between projects and whenever i hit 3.2gb ram app crashes.

I'd like to hear your suggestions. I'd be appreciated if you mention what's the perfect "release" method though for removing loaded audios from ram while using this plugin.

Should i make small chunks on server and use buffer source queue instead? Or is there a way to load files from hard drive, not ram? Or maybe i should optimize the ram usage, but how? :/

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions