Re: [PyOpenGL-Users] Fastest way to draw lots of points
Brought to you by:
mcfletch
From: Chris B. <chr...@no...> - 2012-10-19 17:59:56
|
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. You're right, that when the data are changing (not jsut the view on the data) you lose much of the benefit of OpenGL. NOne the less, you still can get benefit, particularly in Python, from using VBOs -- that way there is no looping in Python -- you can build a VBO from a numpy array at the speed of C. Display lists probably wont' help as you would still need to build up the list -- it's also old-style and practically deprecated approach. -Chris > 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). -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |