Loading TrayIcon menu faster? #17377
Unanswered
Mtax-Development
asked this question in
Q&A
Replies: 1 comment 7 replies
-
You should try to narrow down the cause, if possible. If you can't (and suspect long JIT times), then try ReadyToRun deployment. NativeAOT would work, too, but can be hard to port already existing apps to it. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing an application, which is operated through the
TrayIcon
menu only. On Windows, the first opening of said menu, after right-clicking it, is always very slow. It often takes at least two seconds before the menu is shown, even though all logic of constructing the menu is done when the application first starts, not when the menu is opened. There even are cases where I can even hear my laptop speed-up fans only to load said menu, which then will appear after a delay. However, subsequent menu openings are quick as expected.Is there a way to preload resources needed to render the menu without user interaction? I attempted to create a window with text off-screen to force text-related resources to load, but I am still running into this issue. Perhaps there is a way to preload DLLs involved in rendering the
TrayIcon
menu and keep them in memory?Beta Was this translation helpful? Give feedback.
All reactions