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

Re: [pygame] [PyGame + PyOpenGL] Setting Target Surface



On Thu, 2006-04-06 at 21:34 -0700, Brian Fisher wrote:
> I can't see why there would be a speed difference in terms of just
> copying pixels, but who knows... also, there is only one accumulation
> buffer, while you can have a lot of textures

glReadPixels will stall your hardware graphics pipeline. It will make a
noticeable speed drop.

Copying from video memory into system memory is sadly one of the slowest
operations your game will perform. The same goes for using SDL hardware
accelerated surfaces and trying to look at the pixels.