4 ms·
Haiku (OS) caches the vector icons rendered from HVIF[1][2] files which are used extensively for UI. I didn't find details of the caching design. Possibly it w
by IIsi50MHz 10mo ago
Haiku (OS) caches the vector icons rendered from HVIF[1][2] files which are used extensively for UI.
I didn't find details of the caching design. Possibly it was mentioned to me by waddlesplash on IRC[3].
[1] 500 Byte Images: The Haiku Vector Icon Format (2016)
http://blog.leahhanson.us/post/recursecenter2016/haiku_icons.html http://blog.leahhanson.us/post/recursecenter2016/haiku_icons...
[2] Why Haiku Vector Icons are So Small | Haiku Project (2006)
https://www.haiku-os.org/articles/2006-11-13_why_haiku_vector_icons_are_so_small/ https://www.haiku-os.org/articles/2006-11-13_why_haiku_vecto...
[3] irc://irc.oftc.net/haiku
- eviks 10mo ago> The drawback to using vector images is that it can take longer to render a vector image than a bitmap; you basically need to turn the vector image into a bitmap at the size you want to display on the screen. Indeed, would be nice if one of these blogs explained the caching solution to tackle the drawback. Another issue, I think, especially at smaller sizes, is the pixel snapping might be imperfect and require "hints" like in fonts? Wonder if these icons suffer from these/address it