-
Notifications
You must be signed in to change notification settings - Fork 17.1k
[Feature Request]: Callback to be notified when "tile memory limits exceeded" #41578
Copy link
Copy link
Closed
Labels
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
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
Reactions are currently unavailable