Open char101 opened 8 months ago
The GPU memory already is constant, the constant just might be higher than your machine can handle. We have added a num_cached_pages
config option recently, you can set it to a lower value to reduce memory usage. Also what is your display resolution?
I have dual monitor, the app is running in a QHD monitor. The other monitor is FHD. The application window itself is small, probably around 800 x 1000 pixels.
Yeah I'm not sure about the GPU memory. I'm using System Informer to check the memory usage and it is showing that firefox uses 32 GB dedicated GPU bytes, while the GPU only has 2 GB memory.
I tested adding num_cached_pages 1
to the configuration and can't see much difference with the memory or GPU memory.
1 document open
4 documents open
This is with my patch above. As can be seen in the screenshots, the working set memory does not increase much, but the private bytes increases a lot.
So far with no cache, the drawback that I experienced is flickering when the page is being rerendered. Currently I am using a 16 MB cache value and hasn't experienced any flickering.
Hi,
Mupdf tools supports a low memory flag.
The default mupdf cache is 256MB, this means opening 4 documents will use up to 1GB memory.
In my test opening 4 pdfs:
So without cache the working set memory is kept low, what eats up memory is the GPU memory. After the GPU memory > 1GB, the application hang.
It would be useful if sioyek can also support a low memory config and even better is if the GPU memory can be also made constant.