qzdoom/src/gl/textures
Christoph Oelckers a8e9c1832f - decided to restrict the 2.0 beta to OpenGL 4.x with GL_ARB_buffer_storage extension and removed all code for supporting older versions.
Sadly, anything else makes no sense.
All the recently made changes live or die, depending on this extension's presence.
Without it, there are major performance issues with the buffer uploads. All of the traditional buffer upload methods are without exception horrendously slow, especially in the context of a Doom engine where frequent small updates are required.
It could be solved with a complete restructuring of the engine, of course, but that's hardly worth the effort, considering it's only for legacy hardware whose market share will inevitably shrink considerably over the next years.
And even then, under the best circumstances I'd still get the same performance as the old immediate mode renderer in GZDoom 1.x and still couldn't implement the additions I'd like to make.

So, since I need to keep GZDoom 1.x around anyway for older GL 2.x hardware, it may as well serve for 3.x hardware, too. It's certainly less work than constantly trying to find workarounds for the older hardware's limitations that cost more time than working on future-proofing the engine.

This new, trimmed down 4.x renderer runs on a core profile configuration and uses persistently mapped buffers for nearly everything that is getting transferred to the GPU. (The global uniforms are still being used as such but they'll be phased out after the first beta release.
2014-08-01 22:42:39 +02:00
..
gl_bitmap.cpp - decided to restrict the 2.0 beta to OpenGL 4.x with GL_ARB_buffer_storage extension and removed all code for supporting older versions. 2014-08-01 22:42:39 +02:00
gl_bitmap.h - remove colormap from texture generation parameters. The one remaining special case, alpha texture on old hardware is now handled by the currently set texture mode at the time of use. 2014-05-11 19:44:19 +02:00
gl_hirestex.cpp Fix compilation errors in latest texture-related changes 2014-06-01 10:27:16 +03:00
gl_hqresize.cpp removed all GL 2.x code. 2014-06-21 15:50:32 +02:00
gl_hwtexture.cpp - decided to restrict the 2.0 beta to OpenGL 4.x with GL_ARB_buffer_storage extension and removed all code for supporting older versions. 2014-08-01 22:42:39 +02:00
gl_hwtexture.h - removed all code that mixes together the different lighting methods. Now everything goes through the 3 different light parameters in the render state. 2014-05-11 21:47:54 +02:00
gl_material.cpp - make the shader timer part of the render state. 2014-07-26 20:56:10 +02:00
gl_material.h - reactivate compatibility profile so that immediate mode drawing can be used on older hardware not supporting persistently mapped buffers. 2014-07-17 02:37:18 +02:00
gl_skyboxtexture.cpp Fix compilation errors in latest texture-related changes 2014-06-01 10:27:16 +03:00
gl_skyboxtexture.h - added GL render as of SVN revision 1600. 2013-06-23 09:49:34 +02:00
gl_texture.cpp removed all GL 2.x code. 2014-06-21 15:50:32 +02:00
gl_texture.h - added GL render as of SVN revision 1600. 2013-06-23 09:49:34 +02:00
gl_translate.cpp - added GL render as of SVN revision 1600. 2013-06-23 09:49:34 +02:00
gl_translate.h - added GL render as of SVN revision 1600. 2013-06-23 09:49:34 +02:00