holland01 / YAQ3R

view a (I)BSP map!
Other
6 stars 1 forks source link

Remove duplicate shader programs #9

Closed holland01 closed 8 years ago

holland01 commented 8 years ago

This is huge; effect shaders shouldn't map to their own individually owned glsl programs. Rather, they should map (via index) to a pool of glsl programs that exist according to their own requirements.

This should save on GPU memory significantly.

holland01 commented 8 years ago

Major changes are implemented. One test provided an improvement about 1 MB less RAM per frame for Railgun_Arena. In addition, the number of shader programs decreased from 58 to 28.

This is good, at least for now.