Re: Fastest way to draw lots of points
Chris Barker <[email protected]> Fri, 19 Oct 2012 10:59:06 -0700
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CALGmxEKUw2m08KdxoputL7sSRDvu8ggGFjJOdZRwyPynVx2jVg@mail.gmail.com> |
On Fri, Oct 19, 2012 at 10:02 AM, Ryan Hope <[email protected]> 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 <[email protected]> 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 [email protected] ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net