[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Load Graphics 30x faster than pygame.image.load



Yeah, loading from DVD, CD, or even HD without enough RAM would significantly change those numbers.

I didn't load the same file over and over - I loaded a random file from an alway-open FD, but the file the FD pointed to only had 100 pictures in it.

Still.... it would be nice to load them all at once, but alas, the game has way too many graphics to do that with. I'm going to have to think harder about room scripting.

Right now the problem is the animations are jerky as one stops and another begins. This was not apparent until room scripting was put in. I'll have to preload all the animations for a script, or load them in a separate thread, or something.

--Kamilche