From: Pete S. <pe...@vi...> - 2000-09-12 17:19:30
|
> Hah, this was exactly what I needed. As I'm new to both SDL and pysdl > there is a lot to learn about how to do things in sdl. For instance the > update_rects() should be better than always updating the entire display. > > Is there a real benefit from converting surfaces to the native format with > convert_display()? I assume there is, as otherwise the normal SDL would > not have included it. I'm not working on a fps game, but slowpaced > strategic game, but the amounts of gfx that may need updating every now > and then can be very large (scrolling around the map etc). And yes, if > anyone likes those kinds of games I'm interested in discussing methods for > making them look and play good using pysdl. the convert_display() call is probably one of the most important in terms of speed. especially if you're doing a lot of blitting. you should have every graphic surface converted to the same format as the display surface. the only exception to this would be any surfaces where you're manipulating the pixels yourself. but this is pretty rare in python, and in most cases, the map_rgb() will work fine. i'm sure interested to see what you're putting together. don't be a stranger :] |