@@ -37,6 +37,10 @@ static Cvar::Cvar<std::string> shaderpath(
3737static Cvar::Cvar<bool > r_glslCache (
3838 " r_glslCache" , " cache compiled GLSL shader binaries in the homepath" , Cvar::NONE, true );
3939
40+ static Cvar::Cvar<bool > r_logUnmarkedGLSLBuilds (
41+ " r_logUnmarkedGLSLBuilds" , " Log building information for GLSL shaders that are built after the map is loaded" ,
42+ Cvar::NONE, true );
43+
4044extern std::unordered_map<std::string, std::string> shadermap;
4145// shaderKind's value will be determined later based on command line setting or absence of.
4246ShaderKind shaderKind = ShaderKind::Unknown;
@@ -1123,7 +1127,7 @@ bool GLShaderManager::BuildPermutation( GLShader* shader, int macroIndex, int de
11231127
11241128 Log::Debug ( " Built in: %i ms" , Sys::Milliseconds () - start );
11251129
1126- if ( buildOneShader ) {
1130+ if ( buildOneShader && r_logUnmarkedGLSLBuilds. Get () ) {
11271131 Log::Notice ( " Built a glsl shader program in %i ms (compile: %u in %i ms, link: %u in %i ms;"
11281132 " cache: loaded %u in %i ms, saved %u in %i ms)" ,
11291133 Sys::Milliseconds () - start,
@@ -1174,7 +1178,6 @@ void GLShaderManager::BuildAll( const bool buildOnlyMarked ) {
11741178 _shaderBuildQueue.pop ();
11751179 }
11761180
1177- // doesn't include deform vertex shaders, those are built elsewhere!
11781181 Log::Notice ( " Built %u glsl shader programs in %i ms (compile: %u in %i ms, link: %u in %i ms, init: %u in %i ms;"
11791182 " cache: loaded %u in %i ms, saved %u in %i ms)" ,
11801183 count, Sys::Milliseconds () - startTime,
0 commit comments