Re: [PyOpenGL-Users] Fastest way to draw lots of points
Brought to you by:
mcfletch
From: Derakon <de...@gm...> - 2012-10-19 17:30:57
|
On Fri, Oct 19, 2012 at 10:02 AM, Ryan Hope <rm...@gm...> wrote: > I think miss the point that this is a moving star field, the points > are in new locations every frame. I dont see how display lists can > help with dynamic data. If the points aren't changing with respect to each other (e.g. they just scroll as the view changes) then you should still be able to use a display list, yes? Just set up your view transform before using the display list. Of course, if you're manually scrolling the stars then this wouldn't work. So don't manually scroll the stars. :) > > On Fri, Oct 19, 2012 at 1:00 PM, Ian Mallett <geo...@gm...> wrote: >> The most efficient ways to draw points are none of what you have here. You >> should look into display lists (or better, VBOs). >> >> Most of your overhead is caused by having to transfer all the data across >> the graphics bus to the GPU each frame. Display lists and VBOs both transfer >> the data once and then invoke the GPU to draw the cached data. >> >> Ian > > > > -- > Ryan Hope, M.S. -Chris |