PDA

View Full Version : Combining Points into one VBO



phdr_hroch
07-09-2012, 07:27 AM
hi in my app, I've got many points. If I want to speedup rendering, the fastest way seems combining them together into one VBO (one vertex array for multiple points) and then draw them with one call. What is optimal size of that array, does have OpenGL problems with allocating too big arrays on GPU ?? I also really need to store those points in CPU.

aqnuep
07-09-2012, 08:12 AM
You usually can assume that you can use an arbitrary large vertex buffer and it should be just fine. However, you should tell us how many points do you plan to have. Thousands? Millions? More?

phdr_hroch
07-12-2012, 01:42 AM
array od size 30k+ and not bigger than 500 000.

V-man
07-17-2012, 04:57 AM
Some info here http://www.opengl.org/wiki/VBO_-_more

thokra
07-17-2012, 07:45 AM
You usually can assume that you can use an arbitrary large vertex buffer and it should be just fine.

Incidentally, do you know if the proposed range of 1MB to 4MB still holds for buffers?


does have OpenGL problems with allocating too big arrays on GPU ??

Yes and the GL will generate a GL_OUT_OF_MEMORY error if you try too allocate a buffer with an invalid size.

phdr_hroch
07-24-2012, 07:22 AM
I can construct buffer anyway I want to.
Thanks for answers