Warning - long and ranty.
First let me say I spent way too much time down this rabbit hole. Second, it was inspired by the many posts by @Dave_ZPCMR and his passion for having Zwift run as best as possible. Specifically what got me going was a post a week or so ago that mentioned the Zwift log file having a lot of entries in it for files that were not found. Also the many times he has pointed out that frame rates as of late have been significantly worse lately and also that it takes much longer to load than it used to. None of what I found is likely related to frame rates but I definitely think there is a lot of room for improvement in load times.
What I did was run a tool from Microsoft called āProcess Monitorā. It monitors all disk and registry (and others) activity that is going on in Windows. I filtered it for executables that contain Zwift and file accesses that are in āC:\Program Files (x86)\Zwiftā and below. I do this sort of thing frequently in my job so for fun fired it up against Zwift. I want to say that Iāve seen some pretty bad software activity over the years but what I found here was pretty astounding to me.
From the time that I double click on the Zwift icon, get past the launcher and pairing screen and then to the main screen (and letting it sit for a minute to do any background tasks), there were a total of 53,874 calls to the file system to read or write to files. That sounds like a lot but that number doesnāt bother me. What bothers me is that 14,787 of those calls were to files and folders THAT DO NOT EXIST! On top of that, it looks for some files hundreds or thousands of times. For example, āC:\Program Files (x86)\Zwift\data\Humans\Jerseys\Layout_normWithPocket.tgaā is listed 1471 times, Layout_normWithPocket.tgax is there 1470 times and Layout_normWithPocket.ztx is also 1470 times. In all, it looks for 6,291 unique files that donāt exist. They are all things like bike frames, jerseys, trees, rocks, etc.
Once, it finally gets through all that and is sitting at the screen waiting for me to select a world, route etc it does something else that is interesting. It slowly reads āC:\Program Files
x86)\Zwift\data\Video\CritCityVid1.bikā in 128kb chunks over and over. I say slowly because itās only a 45MB file but it takes a full minute to get through the whole file at which point, it starts over and goes through the whole file again. If you open that file in a media player itās various videos that are sometimes seen in game like up on the big screens in Paris.
Next I monitored what happens when selecting a world and doing a fan view of someone for a while. I brought up Watopia and got more of the same. 28,381 calls to files and 9,641 of which were to non existent files of which 1,949 were unique file names. Once things were running I didnāt notice any more oddities in looking for files but I do see it occasionally loading a file for a particular asset like hats and glasses (at least it knows where to find thoseā¦). One thing I do note is that it frequently loads files from āC:\Program Files (x86)\Zwift\data\Audio\PCā even through I have all audio turned off in my settings which is just more unneeded resources. If my music and audio settings are off, donāt just mute them, stop reading the files too.
So, Iām running Zwift on a machine with a SSD. Would fixing this have some massive improvement in load times? Probably not but I bet older hardware on non-SSD drives certainly would benefit! Itās really just an example of how cleaning up a bunch of little things can have a big overall impact. Clean this up and fix whatever changed recently to drop the frame rates Dave has mentioned and all the other little annoyances. Combined they likely result in a much better overall experience for people!