B
BrokenUnusableAccount
Guest
Note: My Zgemma H7 is set to always output 1080P (to match my HD TV) no matter what the resolution of any video that it may be playing, and I use a 1080 skin.
For a long time, the perfectionist in me has been irritated by the fact that picons display with an inconsistent quality.
Sometimes with obvious jagged edges and steps visible, other times looking 100% perfect.
I think what's happening is that the pixmap caching is caching the picons read from their files after they have been scaled ready to be displayed, and this results in the large picons displayed in, for example, the InfoBar sometimes being upscaled from low resolution versions that were cached when small picons were displayed in, for example, the grid EPG or the movie list.
At present, I'm fixing this by using this modified version of /usr/lib/enigma2/python/Tools/LoadPixmap.py
on my box.
It's not obvious why it works, and the fact that it does suggest that at some point caching was deliberately not asked for when displaying picons.
However, it doesn't seem to noticeably slow things down on my box, but is it an acceptable solution for me to do a pull request?
It does still allow code to ask for caching in cases where it is likely to help things go at acceptable speed, like if the same pixmap is used a large number of times on the same screen (perhaps parts of the grid EPG might do this, I don't know?).
But it also does probably result in less caching occurring, and thus more reading pixmaps from files.
Should I make a pull request, or should I try and have a go at, perhaps, making the pixmap caching in some way bitmap size aware?
For a long time, the perfectionist in me has been irritated by the fact that picons display with an inconsistent quality.
Sometimes with obvious jagged edges and steps visible, other times looking 100% perfect.
I think what's happening is that the pixmap caching is caching the picons read from their files after they have been scaled ready to be displayed, and this results in the large picons displayed in, for example, the InfoBar sometimes being upscaled from low resolution versions that were cached when small picons were displayed in, for example, the grid EPG or the movie list.
At present, I'm fixing this by using this modified version of /usr/lib/enigma2/python/Tools/LoadPixmap.py
Code:
my file: https://github.com/BrianG61UK/enigma2/blob/PixmapCaching/lib/python/Tools/LoadPixmap.py
compared: https://github.com/BrianG61UK/enigma2/commit/4b654b2d665c0871806c6e263f09f0db60025ff8
It's not obvious why it works, and the fact that it does suggest that at some point caching was deliberately not asked for when displaying picons.
However, it doesn't seem to noticeably slow things down on my box, but is it an acceptable solution for me to do a pull request?
It does still allow code to ask for caching in cases where it is likely to help things go at acceptable speed, like if the same pixmap is used a large number of times on the same screen (perhaps parts of the grid EPG might do this, I don't know?).
But it also does probably result in less caching occurring, and thus more reading pixmaps from files.
Should I make a pull request, or should I try and have a go at, perhaps, making the pixmap caching in some way bitmap size aware?


