Saturday, 4 July 2009

Slowly but slowly

No spangly graphics to report but I've got the source code running on the XBox again with 3.1 and very nicely. Strangely their's a big discrepancy in loading times between x86 and the console with model data. I expected the xbox to be faster but it takes twice as long as my laptop.

There's a good chance this is because we are doing a lot of drawing during the load calls and our rendering thread is separate from our load thread. The draw thread could therefore be locking the graphics device while the load thread is trying to use it and wasting precious time! Argh!

If we can't draw at every update during the load then this should improve load times but at what cost? No animated loading screens?

Can I not have my cake and eat it?

2 comments:

Alexander said...

It would be a shame, but it could be overcome. I was recently playing Halflife 2 which I noted has completely motionless loading screens, so it's not necessarily going to make us look amateur...

Kevin Reed said...

actually the problem isnt that the graphics device is being used by 2 things at once; the model is loading in a matter of milliseconds. All of the delay is in the generation of the oct tree. since the game is loaded in the lobby it should be easy enough to break down the process into smaller, spaced out chunks without any adverse effect on gameplay