Home of the Open Toolkit library

im new to the opengl world and need some help. Please be considerate of that my english isnt the best.
I need to use the VBO´s cause i wanna draw Vector3d-array wich is changed during the programm runs.
Every programm cycle adds a new Vector3d to the array.

The problem i have is, that the framerate decreases hard with every programm cycle even if im using
the vbo`s, and i wanna know what im doing wrong?!

The current code doesnt show`s up any differences in performance between the intermediate mode
and the vbo`s.

Just if you`ll need it to understand the code the following function is cyclic called and adds an amount of vector3d`s to the
Vector3d-list wich is converted into an array with the .ToArray() - function:

Comments

Comment viewing options

If you have BufferUsageHint.DynamicDraw then you should update the buffer instead of destroying and creating new one.
Replace List<Vector3d> radiusFullTube with double[]radiusFullTube=newdouble[16 * 3]//because 16 entries * 3 components of the vector
Same for the other lists.
then when filling them out

Also you may not need Double precision for the actual rendering, so you can save half of the bandwidth.

If you are not sure, you can test
a) generating the buffer once and rendering every frame the same buffer
b) only calculating the arrays, but not updating the vertex buffer and no rendering
c) calculating + updating, no rendering