c# - OpenGL draw every n vertex -
i working on writing application contains line plots of large datasets.
my current strategy load data each channel 1d vertex buffers.
i use vertex shader when drawing assemble buffers vertices (so can reuse 1 of buffers multiple sets of data)
this working pretty well, , can draw few hundred million data-points, without slowing down much.
to stretch things bit further reduce number of points drawn, though simple reduction (i.e. draw every n points) there not point plotting 1000 points represented single pixel)
one way can think of doing use geometry shader , emit every n points not sure if best plan of attack.
would recommended way of doing this?
you can simpler adjusting stride of vertex attributes n times normal one.
Comments
Post a Comment