Author Topic: Custom HUDs and load times.  (Read 3328 times)

chompers

  • Posts: 224
  • Turrets: +4/-0
Custom HUDs and load times.
« on: February 24, 2007, 02:31:26 am »
A couple of people have mentioned that levels load faster when you are running a custom HUD. After a bit of testing, it certainly seems to be the case on my PC. On many of the larger levels the load sort of hangs for a few seconds at 60%, but with a custom HUD this pause goes away or is at least greatly reduced. On smaller levels like ATCS it won't make much difference, but on levels like transit and nexus there's a distinct load time advantage.

If you're easily able to disable and re-enable custom HUDs, please test it out and see for yourself, and post your results. Any devs or otherwise code savvy people have an idea why this might happen?

PHREAK

  • Posts: 344
  • Turrets: +3/-2
Custom HUDs and load times.
« Reply #1 on: February 24, 2007, 03:39:03 am »
As you know, pk3's are zip files and as such are compressed.
To load the hud, the game has to access the hud files inside the pk3, uncompress, compile, render.
You skip a step if the HUD is outside of the pk3.
Here's what you can do to test it.
Create a pk3 with your hud files in your base/UI folder and point trem to it and you will see that it will takes as long as it does when using the stock HUD.

I might be wrong about the reason why it takes longer but this has been my experience with the Q2 and Q3 engines.
Correct me if I'm wrong.
Yelling at team mates since 2006!

chompers

  • Posts: 224
  • Turrets: +4/-0
Custom HUDs and load times.
« Reply #2 on: February 24, 2007, 05:25:10 am »
Yeah, that might account for a few milliseconds, but the difference is several seconds. I'm guessing that stepping out of the pk3 halfway through to load some arbitrary files, then stepping back into the pk3 decompression routine clears up some cached memory or something which lets the 2nd half of the pk3 load faster.

Something like that anyway, it's all very curious.

edit: It would be interesting to see system specs of those who find it makes a huge difference and those (if any) who find it makes no noticable difference.

BeerBastard

  • Posts: 276
  • Turrets: +25/-21
    • Home of [OPP]
Custom HUDs and load times.
« Reply #3 on: February 28, 2007, 12:12:24 am »
One less file to check on a pure server?  Pure servers check the pk3, if you move the hud outside of it, Its not being checked by the server. I dont know much about it but maybe this accounts for the rest of the time.  It talks with the server to get the checksums.
Feeling Oppressed?
You Down with [OPP]?


-[OPP]Beerbastard