PixelFarm icon indicating copy to clipboard operation
PixelFarm copied to clipboard

VBO revisit

Open prepare opened this issue 8 years ago • 2 comments

see http://www.learnopengles.com/tag/vertex-buffer-object/ and https://developer.apple.com/library/content/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/TechniquesforWorkingwithVertexData/TechniquesforWorkingwithVertexData.html

http://www.learnopengles.com/android-lesson-seven-an-introduction-to-vertex-buffer-objects-vbos/

prepare avatar Oct 19 '17 11:10 prepare

I'm implementing VBO.

(ref) ... Each time DrawModel is called, the index and vertex data are copied to OpenGL ES, and transferred to the graphics hardware. If the vertex data does not change between invocations, these unnecessary copies can impact performance. To avoid unnecessary copies, your app should store its vertex data in a vertex buffer object (VBO). Because OpenGL ES owns the vertex buffer object’s memory, it can store the buffer in memory that is more accessible to the graphics hardware, or pre-process the data into the preferred format for the graphics hardware.

prepare avatar Oct 19 '17 11:10 prepare

TODO: check this again https://github.com/PaintLab/PixelFarm/commit/09d96a48de2288ec626293d9addd75a9b2a57204

prepare avatar Feb 26 '20 00:02 prepare