mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
In reflowing scroll mode with 2 pages hinting, 4 full page blitbuffers and koptcontexts should stay well in cache in the most demanding cases, with two pages shown on screen and two pages rendered in background. Since blitbuffer size is halved the size of page, we need cache size to be 6 times an average reflowed page size. For Kobo Aura HD which has a resolution of 1440×1080, a reflowed page could become 1080×4800. So 30MB of cache is demanded for this case. This PR implements dynamic cache size allocating according to size of system free memory. By default it will use 20 percent of free RAM with a clip specified by DGLOBAL_CACHE_SIZE_MINIMUM and DGLOBAL_CACHE_SIZE_MAXIMUM which are 10MB and 30MB respectively by default. |
11 years ago | |
---|---|---|
.. | ||
apps/filemanager | 11 years ago | |
document | 11 years ago | |
ui | 11 years ago | |
JSON.lua | 11 years ago | |
cache.lua | 11 years ago | |
cacheitem.lua | 11 years ago | |
dbg.lua | 11 years ago | |
docsettings.lua | 11 years ago | |
gettext.lua | 11 years ago | |
optmath.lua | 11 years ago |