Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First launch is slow #1832

Open
CrypticCus opened this issue Jan 27, 2024 · 7 comments
Open

First launch is slow #1832

CrypticCus opened this issue Jan 27, 2024 · 7 comments

Comments

@CrypticCus
Copy link

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:

@ufuksarp
Copy link

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.

@xanthisafk
Copy link

Same problem on Windows 11 Home build 22631.3007

@CrypticCus
Copy link
Author

CrypticCus commented Feb 1, 2024

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

@ufuksarp
Copy link

ufuksarp commented Feb 1, 2024

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.

@d2phap
Copy link
Owner

d2phap commented Feb 1, 2024

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.

@CrypticCus
Copy link
Author

CrypticCus commented Feb 3, 2024

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.

@Karob2
Copy link

Karob2 commented Apr 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants