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

Re: [pygame] Re: pygame and file object compatibility; slow.



Maize wrote:
The time it takes to extract
the file into memory is around 0.003s or so. The problem occurs
exactly when it hits the pygame.image.load.

Tar files are a bad choice for random access, because they
have no index -- the only way to find a specific file is
to search for it from the beginning.

Zip files are indexed, so they're definitely the way to
go here. Plus you get compression if you want it.

As for loading fonts from file objects, I believe there's
a known bug in pygame regarding that. You might want to
look into whether it's been fixed recently.

--
Greg