I have a question related to the performance of a Buffer object. I rendered the grid using standard Vertex arrays (non-interlaced), and I wanted to change it to a Buffer Object to get some performance boost. When I present the buffer object, I was shocked when I found out that using the Buffers object reduces performance four times. I think buffers should improve performance. It's true? So, I think I'm doing something wrong ...
I displayed a 3d map and reduced the amount of memory needed. I use only one slab (vertex set) to render the entire map. I only change the texture coordinates and the y value at the vertex position for each tile of the map. Buffers for position and texture coordinates are created using the GL_DYNAMIC_DRAW parameter. The index buffer is created using GL_STATIC_DRAW because it does not change during map display. Thus, for each tile, map buffers are displayed and not displayed at least once. Should I use only one buffer for texture coordinates and positions?
Thank,
/ GL_MODELVIEW/GL_TEXTURE ( GL_STATIC_DRAW). 1x1, rect (0, 0) - (1, 1) glTranslate. .
GL_MODELVIEW
GL_TEXTURE
GL_STATIC_DRAW
glTranslate
VBOs , . . opengl, .
, GL_STREAM_DRAW ( , ), GL_DYNAMIC_DRAW ( , ). , , GL_STREAM_DRAW, ol, , .
, glMapBuffer , GL_WRITE_ONLY, , . , , , (, ...) . , .
Source: https://habr.com/ru/post/1753481/More articles:Specifying custom baud rate for FTDI virtual serial port on Linux - linuxRESTful file upload in PHP - restunknown array length in python types - pythonThe return value from the column specified on the same row - vectorizationNHibernate.Validator vs DataAnnotations - validationPython: how to find the path to a script to run a python script - pythonUltraTree Infragistics - select all nodes - treeThe best socket options for client and partition that continuously transmit data - socketsAuditing two different tables in SQL Server - sql-serverConvert certificate from p7c to cer - certificateAll Articles