Loading…

I’ve been taking a closer look at the loading process over the last few days. I’ve managed to eliminate the Chug Chug. For those unaware, the chug chug is when you’re joining a server (or starting a game) and just as you spawn it goes CHUG CHUG CHUG, repeating the sound of the physgun for under a second (or over depending on how crappy your computer is). The culprit, I found, was this:

Redownloading all lightmaps
R_RedownloadAllLightmaps took 518.624 msec!

On the first frame it redownloads the lightmaps. For some reason. I had a look around the engine internals, and it shouldn’t be redownloading them unless some specific graphics card settings are changed. But that doesn’t change the fact that it is happening. I fixed it though, ghetto style. I just call StartScene, EndScene during load. Doesn’t seem to have any negative effect, and gives us a nice smooth spawn.

So like I said in an earlier blog I’ve re-done the loading screen. I got the file download stuff to show up, and it’s pretty cute. It makes having to download 150 stupid sweps from some loser’s server a total pleasure.

Here’s the normal loading screen. Ignore the grey box at the bottom right. I’m gonna get rid of that.

But oh wait! Files to be downloaded! The each little file walking across the screen represents an actual file that you have downloaded. The bigger the file, the slower it walks. Maps are right fat bastards.

In a theme-park style, some files carry umbrellas. You can’t see here, but maps, models, sounds etc, all have different icons when running along the bottom of the screen.

Until it’s all over, and the game starts!

There’s a massive bug in the beta at the moment. Certain models seem to be causing epic crashes. But these crashes happen in EP2 too, so I’m guessing it’s a Valve problem instead of a Garry problem. (To re-create, do npc_spawn npc_monk in ep2. It doesn’t crash until you get within 6 feet of him. It took down Steam for me too (all the games showed as preloading).)