You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows OS version: Windows 10 Pro N 22H2 19045.4529
ImageGlass version: 9.1.6.14
ImageGlass release: Classic
To Reproduce
Steps to reproduce the behavior:
Install InkScape.
Install ImageGlass.
Launch ImageGlass.
Observe slow startup with 100% CPU as several instances of inkscape are launched.
Actual behavior
It seems that ImageGlass stores its toolbar icons in SVG format and converts them to a more suitable format for display each time the program is launched. Each icon gets a separate instance of inkscape.exe to perform the conversion, resulting in 53 instances of inkscape.exe, consuming every CPU core for several seconds. This results in a startup time of ~15 seconds on my desktop PC and 1 minute on my laptop (while the fans run full blast).
Ideas for improvement:
Perhaps the toolbar icons (and any other themed images) that are stored as an SVG can be rendered using the same method as when InkScape isn't installed. (i.e. Maybe ImageMagick can be to instructed not to use InkScape specifically for the toolbar icons, while still using InkScape for image the user is trying to view.
The rendered SVGs could be cached.
InkScape.exe could be profiled and optimized, though launching 53 instances of inkscape.exe still seems like a bad idea regardless of how optimized it is.
Expected behavior
I expected ImageGlass to have similar startup performance with or without InkScape installed.
Screenshots / Video / Sample image file
imageglass_slow_startup.mp4
The text was updated successfully, but these errors were encountered:
System information
To Reproduce
Steps to reproduce the behavior:
Actual behavior
It seems that ImageGlass stores its toolbar icons in SVG format and converts them to a more suitable format for display each time the program is launched. Each icon gets a separate instance of inkscape.exe to perform the conversion, resulting in 53 instances of
inkscape.exe
, consuming every CPU core for several seconds. This results in a startup time of ~15 seconds on my desktop PC and 1 minute on my laptop (while the fans run full blast).Ideas for improvement:
Expected behavior
I expected ImageGlass to have similar startup performance with or without InkScape installed.
Screenshots / Video / Sample image file
imageglass_slow_startup.mp4
The text was updated successfully, but these errors were encountered: