On Mon Feb 12 18:51:02 2024 +0000, Rémi Bernon wrote:
I really like the idea of making startup faster but I would rather fix it at the source rather than adding another layer of caching. Virtual desktop and explorer initialization is already enough of a mess as it is. Fwiw while looking at https://gitlab.winehq.org/wine/wine/-/merge_requests/5057 I believe I found some things that cause unnecessary refreshes of the display device cache during virtual desktop activation. The https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/win32u/winstation.c#L... line specifically should probably be changed to FALSE (force).
Unfortunately that doesn't seem to help much. I admit my measurement is not very precise (I just launch notepad++ in an active prefix to avoid prefix initialization, and use `time` and then just press CTRL+C when window shows up), so I'm basically taking anything within ~0.1sec as margin of error.
With this MR though, it's very noticeable, since it basically goes down by like half a second.
Of course, I didn't even time it when I looked for the regression, because it was "obvious" it was way slower. It's *that* noticeable and annoying for me. :/
I don't know why there's such a big difference, I'm guessing too many wineserver round trips?