ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

First launch is slow

Open CrypticCus opened this issue 1 year ago • 7 comments

System information:

  • Windows OS version: latest
  • ImageGlass version: latest

To Reproduce

Steps to reproduce the behavior:

  1. First launch is slow

Actual behavior:

First launch is slow

Expected behavior:

faster launch maybe run a background service like "lightning reopen" extension for chromium browsers etc runs software at system tray

Screenshots:

Additional context:

CrypticCus avatar Jan 27 '24 18:01 CrypticCus

Yeah, the first launch takes too long. But I'm not sure if a background service is the solution that only transfers the lag to the Windows startup. That I dread even more.

ufuksarp avatar Jan 30 '24 20:01 ufuksarp

Same problem on Windows 11 Home build 22631.3007

xanthisafk avatar Jan 31 '24 10:01 xanthisafk

Yeah, the first launch takes too long. But I'm not sure if a background service is the solution that only transfers the lag to the Windows startup. That I dread even more.

I think new processors and ssds can handle a delayed system tray start or a service

CrypticCus avatar Feb 01 '24 07:02 CrypticCus

I think new processors and ssds can handle a delayed system tray start or a service

Making a background service just for the initial startup lag is not the best idea or even a good idea. Having a service for a photo viewer is a bit too much. I’m positive that finding the main causes for the lag and fixing it in the first place is easier than creating a whole new module anyway.

ufuksarp avatar Feb 01 '24 11:02 ufuksarp

One of the .NET's cons is the first launch time is slow.

I thought upgrading to using .NET 8 makes it launch faster (or at least to my machine) so I removed the feature "Start with OS to improve startup speed" from v8. Even though I already enable "Ready to Run" when I publish the binary files.

In v8, you can check this option in Settings > General > Others to make ImageGlass pre-load and hide in the system tray.

I will bring this setting back to v9.

d2phap avatar Feb 01 '24 13:02 d2phap

I think new processors and ssds can handle a delayed system tray start or a service

Making a background service just for the initial startup lag is not the best idea or even a good idea. Having a service for a photo viewer is a bit too much. I’m positive that finding the main causes for the lag and fixing it in the first place is easier than creating a whole new module anyway.

you can disable if you don't want. its better than having no solution. a new module? its few lines of code to make a system tray icon. no one can write software from scratch just to solve a stupid issue that can be solved in other ways. you can fork the work if u want another solution.

CrypticCus avatar Feb 03 '24 15:02 CrypticCus

On my machine, it's not just the first launch that is slow, but any launch after the app hasn't been opened in a while. (I'm not sure what time or condition causes it to be slow again within the same Windows session.) These slow launches also cause the app to open behind other app windows for me.

Karob2 avatar Apr 21 '24 04:04 Karob2

Added Startup Boost option in ImageGlass 9.1 Beta

image

d2phap avatar May 29 '24 12:05 d2phap

works great thanks! my only problem is icon cache and printing problem now. I opened issues for them.

cant ctrl+p image

I have changed default icons but they are still looking like this. cleaned cache not fixed/replaced. image

CrypticCus avatar May 30 '24 20:05 CrypticCus