Re: Fastest way to draw lots of points
Derakon <[email protected]> Fri, 19 Oct 2012 10:30:56 -0700
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CA+Qo5j4yM61E0UG_thLaGY2T-AegiUwc1yezotw9DE_c9fk2dw@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. 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 <[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). >> >> 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 ------------------------------------------------------------------------------ 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