I've done relatively extensive testing on this in games I've worked on. There was disk cache, windows defender, and so many other variables.https://twitter.com/rygorous/status/1423778960739950595 …
-
Näytä tämä ketju
-
By the time I was done on one project, we had gone from a loading time of 44 seconds to somewhere around 0.5 seconds on our recommended spec machine. Most of those gains came from "not doing something stupid".
1 vastaus 0 uudelleentwiittausta 2 tykkäystäNäytä tämä ketju -
I would wager that most games load times are not IO bound, but rather IO overhead bound.
1 vastaus 0 uudelleentwiittausta 1 tykkäysNäytä tämä ketju -
Vastauksena käyttäjälle @tloch14
That's fascinating, those are some serious values. Do you still remember (or can talk about) what were a couple of those improvements?
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @biovf
A lot of things. Lots of little IO calls was the biggest issue. IO was also hard because the threads to handle the IO being done wouldn't wake up soon enough. IO would be done in nanoseconds, but Windows' Sleep() takes 1 ms at the smallest.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
After fixing the Sleep issue, I ended up taking all those files and compressing them into a single file, extracting with zlib (or some library like it, I don't recall). I wanted to avoid this, because that added a step to our build/deploy process.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
But in the end, the gains were worth it. Load times still suffered on the min-spec Win7 machine. On fresh boot up it would still take nearly a minute to load, but it was way better than the handful of minutes it used to be.
1 vastaus 0 uudelleentwiittausta 1 tykkäys
Like I said, most of it was to stop doing stupid things. Stupid things can be very effective until they aren't. There were other changes, but they were much smaller improvements. Compression and/or deserializing changes.
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.