Statistics: Reformat stats string
This commit is contained in:
parent
f1ddd3c66a
commit
7db5a4b22d
|
@ -123,6 +123,7 @@ void SHADER::Bind()
|
||||||
{
|
{
|
||||||
if (CurrentProgram != glprogid)
|
if (CurrentProgram != glprogid)
|
||||||
{
|
{
|
||||||
|
INCSTAT(stats.thisFrame.numShaderChanges);
|
||||||
glUseProgram(glprogid);
|
glUseProgram(glprogid);
|
||||||
CurrentProgram = glprogid;
|
CurrentProgram = glprogid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ std::string Statistics::ToString()
|
||||||
str += StringFromFormat("pshaders alive: %i\n", stats.numPixelShadersAlive);
|
str += StringFromFormat("pshaders alive: %i\n", stats.numPixelShadersAlive);
|
||||||
str += StringFromFormat("vshaders created: %i\n", stats.numVertexShadersCreated);
|
str += StringFromFormat("vshaders created: %i\n", stats.numVertexShadersCreated);
|
||||||
str += StringFromFormat("vshaders alive: %i\n", stats.numVertexShadersAlive);
|
str += StringFromFormat("vshaders alive: %i\n", stats.numVertexShadersAlive);
|
||||||
|
str += StringFromFormat("shaders changes: %i\n", stats.thisFrame.numShaderChanges);
|
||||||
str += StringFromFormat("dlists called: %i\n", stats.thisFrame.numDListsCalled);
|
str += StringFromFormat("dlists called: %i\n", stats.thisFrame.numDListsCalled);
|
||||||
str += StringFromFormat("Primitive joins: %i\n", stats.thisFrame.numPrimitiveJoins);
|
str += StringFromFormat("Primitive joins: %i\n", stats.thisFrame.numPrimitiveJoins);
|
||||||
str += StringFromFormat("Draw calls: %i\n", stats.thisFrame.numDrawCalls);
|
str += StringFromFormat("Draw calls: %i\n", stats.thisFrame.numDrawCalls);
|
||||||
|
|
Loading…
Reference in New Issue