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

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



Kamilche wrote:
Bob Ippolito wrote:
That doesn't seem to make any sense... you've already loaded the
picture, why convert it to a string just to convert it back to a
picture? It's using up about the same amount of RAM as a string or as
an image object.


Assume the string is read from disk, instead of doing a pygame image load. The speed bump truly surprised me!


So every time you change your graphics you have to run a separate script to convert the images to strings?
It seems like this introduces unneeded complexity since your graphics shouldn't be loading at runtime anyway, except
perhaps in your case in a MMORPG where you may want small loading times (to the point where the user won't notice it
or at least fast enough that you don't need a loading screen.)
--Kamilche