qzdoom/src/gl/data
Christoph Oelckers f710518903 - use a uniform array to store vertex data to render dynamic stuff on GL 3.x hardware without the ARB_buffer_storage extension.
Due to the way the engine works it needs to render a lot of small primitives with frequent state changes.
But due to the performance of buffer uploads it is impossible to upload each primitive's vertices to a buffer separately because buffer uploads nearly always stall the GPU.
On the other hand, in order to reduce the amount of buffer uploads all the necessary state changes would have to be saved in an array until they can finally be used. This method also imposed an unacceptable overhead.
Fortunately, uploading uniform arrays is very fast and doesn't cause GPU stalls, so now the engine puts the vertex data per primitive into a uniform array and uses a static vertex buffer to index the array in the vertex shader.
This method offers the same performance as immediate mode but only uses core profile features.
2014-06-30 18:10:55 +02:00
..
gl_data.cpp removed all GL 2.x code. 2014-06-21 15:50:32 +02:00
gl_data.h - initialize model data at engine start, not at level start. 2014-06-19 15:22:00 +02:00
gl_portaldata.cpp - fix c++11's compile problems. 2013-08-28 08:33:11 +02:00
gl_setup.cpp - initialize model data at engine start, not at level start. 2014-06-19 15:22:00 +02:00
gl_vertexbuffer.cpp - use a uniform array to store vertex data to render dynamic stuff on GL 3.x hardware without the ARB_buffer_storage extension. 2014-06-30 18:10:55 +02:00
gl_vertexbuffer.h - implement model vertex buffer and draw MD2 models using it instead of using the GLCommands from the model. 2014-06-29 23:24:16 +02:00