PaintLab / PixelFarm

From Vectors to (sub) Pixels, C# 2D Rendering Library
Other
156 stars 21 forks source link

VBO revisit #6

Open prepare opened 6 years ago

prepare commented 6 years ago

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 commented 6 years ago

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 commented 4 years ago

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