Skip to content

[Feature Request]: Callback to be notified when "tile memory limits exceeded" #41578

@theogravity

Description

@theogravity

Preflight Checklist

Problem Description

Our app may contain a lot of items to render on our "canvas" (as in not a canvas element) and in electron, we'll hit the tile memory limits exceeded, some content may not draw warning when doing certain actions. We can probably apply a lot of different techniques (such as hiding certain items during a transition / animation), but it would help to know that the user is encountering the issue so we can limit how we render objects.

Proposed Solution

Probably something like app.on('tile-memory-limit-warning', <callback>), where <callback> may contain some information relating to the limit if possible.

Can also be against a BrowserWindow if this error is renderer-specific.

Alternatives Considered

Don't think there is any based on my research.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions