I'm working on a simple alt-tab replacement program. It's implemented in C# as a hidden WPF window that's brought to the foreground by a global keyboard hotkey.
For the most part this works great, and the application window appears immediately after the hotkey is pressed. However, if it has been a long time since the user has activated the window, it can be slow in "spinning up," and take 3-5 seconds to appear. I assume it has something to do with Windows paging app's memory to disk.
Are there any good strategies for keeping the application responsive after long periods of inactivity?
(Since it's open source, you can look at the full code, if it helps.)