mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
![Andrew Osmond](/assets/img/avatar_default.png)
image.animated.decode-on-demand.threshold-kb is the maximum size in kB that the aggregate frames of an animation can use before it starts to discard already displayed frames, and redecode them as necessary. The lower it is set to, the less overall memory we will consume at the expense of execution time for as long as the tab with the animation(s) above the threshold are kept open. image.animated.decode-on-demand.batch-size is the minimum number of frames we want to have buffered ahead of an animation's currently displayed frame. The decoding will request this number of frames at a time to maximize use of memory caching. Note that this is related to the above preference as well; increasing the batch size will in effect raise what the minimum threshold. This simplifies the logic in patches later in the series.