Closed simotsa closed 1 year ago
Here's the output when conky is ran with debug switch:
So according to the debug, it isn't flushing the cache every cycle, but the image is still being loaded every cycle. The image is only 1MB in file size, so it should be in the cache.
DEBUG(0) [/tmp/portage/app-admin/conky-1.11.6-r2/work/conky-1.11.6/src/imlib2.cc:239]: Flushing Imlib2 cache (1609908673)
DEBUG(0) [/tmp/portage/app-admin/conky-1.11.6-r2/work/conky-1.11.6/src/imlib2.cc:182]: Drawing image '/home/user/Pictures/DSC08391.png' at (0,0) scaled to 2560x1440, caching interval set to 3660 (with -n opt 0)
DEBUG(0) [/tmp/portage/app-admin/conky-1.11.6-r2/work/conky-1.11.6/src/imlib2.cc:182]: Drawing image '/home/user/Pictures/DSC08391.png' at (0,0) scaled to 2560x1440, caching interval set to 3660 (with -n opt 0)
DEBUG(0) [/tmp/portage/app-admin/conky-1.11.6-r2/work/conky-1.11.6/src/imlib2.cc:182]: Drawing image '/home/user/Pictures/DSC08391.png' at (0,0) scaled to 2560x1440, caching interval set to 3660 (with -n opt 0)
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
Issue
imlib_cache_flush_interval config is not observed by conky. conky will attempt to reload the picture everytime it refreshes (based on update_interval).
Information
The following config is used:
And you will find that the png file is being read every 4 seconds instead of every 3600 seconds:
This is problematic because the loading of image is using up the CPU time and slow down the conky's rendering cycle.