Skip to content

Leak of graphics memory due to not destroying FilamentAsset #14

Description

@dfinn

RenderableInstance uses the AssetLoader class to create FilamentAsset instances (createAssetFromBinary(), createAssetFromJson(), etc). However, when these RenderableInstances go out of scope these FilamentAsset instances are not destroyed. Probably, SceneForm should destroy them by calling AssetLoader::destroyAsset() rather than requiring the user to do this. Failure to call destroyAsset() results in a (potentially very large) memory leak.

Potentially this could be done in RenderableInstance.detachFilamentAssetFromRenderer().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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