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

Re: [pygame] Lousy FPS



On 9/13/06, Kris Schnee <kschnee@xxxxxxxxxx> wrote:
hopefully something to boost the framerate above 12!

As others have already mentioned, display lists are the key. For a Disgaea type map, you could compile the entire landscape into a single display list. This should speed up the rendering considerably. I.e. something like:

listid = glGenLists(1)
glNewList(listid, GL_COMPILE)
<call the landscale rendering functions here>
glEndList()

Then on your main loop you just call:

glCallList(listid)

--
Sami Hangaslammi