Hello,
For a while I'm experiencing some big delays with the windows GTK3 version.
The old vice 3.2 starts in 2 seconds
GTK3 3.3, 3.6 & 3.8 need about 9 seconds.
It seems to be stuck for 3-4 seconds between these log lines:
initializing with width, height: 704 x 507
Created render thread 0
There was an additional 2-3 seconds delay when the window appeared until it got to the AR6 menu.
That appears to be the sound init.
When I disable the sound this delay goes away so it went from 9 to 6 seconds.
Changing it from dx to something else with sound enabled doesn't help.
Groepaz adviced me to test the SDL 3.8 version aswell.
But that one starts in 2 seconds.
I disabled webcam, microphone etc aswell as I was told it could also cause delays but that didn't change anything.
Is there anything else that I can try?
OS: Windows 10
Laptop is an older i5 with 16 gig and half of it free (i5-3230M with Intel® HD Graphics 4000)
Thanks for the 3.9 update so another reason to check things out ;)
And I found some oddity.
The GTK version has the 3 seconds delay at the gfx init and needs 5 seconds to reach the AR6 menu.
The SDL version has no such delay and reaches the AR6 menu in 1.5-2 seconds.
Maybe it's worth comparing both init routines as there seems to be some differences.
It only happens on windows... so must be some GTK stuff causing this delay.
Could be DirectX as well? I've also noticed Windows tends to scan the executables of VICE for malware/viruses, causing delays (at least on a Win11 laptop).
The SDL version also uses directX, not?
Then why isn't there any delay on that one?
Is there some more logging that I can enable than what I see passing by in the console window?
I assume SDL uses DirectX on Windows, yes, but perhaps it's something we're doing with DirectX that causes a delay.
There's no additional logging available that will show what's happening during boot, we'd have to run a debugger or add some logging ourselves.
lack of code-signing might be related too
I've tried to reproduce this, adding a lot of logging via printf() and GetSystemTime(), but on the machine I tried this x64sc starts quickly (~0.3 seconds until x64sc is ready and the emulated machine boots).
Windows 11 Pro, Lenovo ThinkPad T490s, i5-8365U @1.60Ghz (jumps to 4.0Ghz according to Task Manager when running x64sc)
I also tried one of our github builds (these have slightly less optimizations), but the startup time is about the same.
Next time I have access to a Windows machine (and some free time) I'll try to rework the logging calls into writes to a specific file and create a build for others to test.