mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 16:07:40 +00:00
f710518903
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. |
||
---|---|---|
.. | ||
burn.fp | ||
burn.vp | ||
fogboundary.fp | ||
func_brightmap.fp | ||
func_defaultlight.fp | ||
func_normal.fp | ||
func_notexture.fp | ||
func_warp1.fp | ||
func_warp2.fp | ||
func_wavex.fp | ||
fuzz_jagged.fp | ||
fuzz_noise.fp | ||
fuzz_smooth.fp | ||
fuzz_smoothnoise.fp | ||
fuzz_smoothtranslucent.fp | ||
fuzz_standard.fp | ||
fuzz_swirly.fp | ||
main.fp | ||
main.vp | ||
shaderdefs.i | ||
stencil.fp | ||
stencil.vp |