Open Bug 1716525 Opened 3 years ago Updated 3 years ago

Flush caches and pools from least recently shown windows when under memory pressure

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nical, Unassigned)

References

(Blocks 1 open bug)

Details

We have an expensive per-window gpu memory overhead. If a user opens a large amount of windows (for example 50 like in bug 1715957), we can easily exhaust all gpu memory.

One way to mitigate that is to keep track of when each window was rendered last, and if gpu memory gets over a certain threshold (for example 3GB), start aggressively flushing caches from the least recently shown windows (or even send a memory pressure events which deallocates most of the texture memory).

You need to log in before you can comment on or make changes to this bug.