gzdoom-gles/src/gl
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
..
data - 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
dynlights - removed obsolete gl_lightbuffer code. 2014-06-30 13:30:10 +02:00
hqnx - don't depend on stdint.h because older MSVC versions do not have it. 2014-05-01 12:30:56 +02:00
models - use vertex buffer to render MD3 models. 2014-06-30 18:02:52 +02:00
renderer - removed obsolete gl_lightbuffer code. 2014-06-30 13:30:10 +02:00
scene - removed obsolete gl_lightbuffer code. 2014-06-30 13:30:10 +02:00
shaders - 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
system - draw wipes with buffers 2014-06-30 10:05:15 +02:00
textures - some cleanup after GL 2.x code removal 2014-06-21 16:41:45 +02:00
utility - added benchmarking calls for glDrawArrays to see how well issunig draw calls performs on different hardware. 2014-06-14 15:16:33 +02:00
gl_builddraw.cpp - added GL render as of SVN revision 1600. 2013-06-23 09:49:34 +02:00
gl_functions.h - added GL render as of SVN revision 1600. 2013-06-23 09:49:34 +02:00