From: David C. <D. C. <si...@te...> - 2000-04-20 03:06:07
|
Mark Baker writes (referring to the differences in blit speed between PNGs and BMPs): > > I'm willing to bet that the speed difference in the blit, is due to the fact > that surfaces aren't in the same format as the video surface before you blit. > The blit function converts them at runtime, if it's not in the same format. > > > Try changing > src = sdl.image_load("./happy.png") > to > src = sdl.image_load("./happy.png").convert(fb, sdl.SWSURFACE) > > To be fair, you'll want to do it to the BMP, too. This should give comparable > figures. > Wow! Not only did that make the PNG and BMP times the same, it cut them by about 40%! Very nice. Thanks for your help. Preliminary SDL documentation: http://www3.telus.net/futility/futility/docs/pysdl/index.html -- ---------------------------------------------------------------- David "Futility [D!]" Clark | Everyone's gotta be something. si...@te... | Me, I'm garbage. | It's all I've ever wanted to be. | Shock me again, and I'll say | anything you want me to. -MGB |