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

Re: [pygame] OpenGL 2D Game



On 5/3/05, Giorgos Giagas <giorgosg@xxxxxxxxx> wrote:
> On the subject of OpenGL and python...
> What can I expect from it?
> I am trying for scrolling of the background at 1024x768.
> this leaves me with a texture of ie. 2048x1024 and it doesn't scroll
> smothlly. (about 40-50fps but it sometimes drops to 5-10 for a while)
> would i have beter fps if i split the image in smaller parts before
> loading to the card (ie 256x256 each image)?
> What i am trying to create is something like the classic 2.5D
> adventure games so it has to be one big image in the background.
> Is this realistic to be done with python and OpenGL?

Definately break it up into smaller pieces. Using textures that large
will outright not work on some older cards, and you should get a much
better performance by tiling smaller rectangles (256x256 should be a
good size).


-- 
Sami Hangaslammi