Commit 6b71ebba authored by NiranV's avatar NiranV
Browse files

Changed: Final performance report verdict to give a rough summary again.

parent 23e8b585
......@@ -469,9 +469,27 @@ void BDFloaterComplexity::calcARC()
final_red /= 11.f;
getChild<LLUICtrl>("final_rating")->setColor(LLColor3(final_red, 1.0f - final_red, 0.0f));
std::string str;
//BD - 90%+ is perfect
if (final_red <= 0.1f)
str = getString("perfect");
//BD - 80% - 90% is still very good
else if (final_red <= 0.2f)
str = getString("verygood");
//BD - 65% - 80% is still good
else if (final_red <= 0.35f)
str = getString("good");
//BD - 35% - 65% is okay
else if (final_red <= 0.65f)
str = getString("ok");
//BD - 20% - 35% is bad
else if (final_red <= 0.8f)
str = getString("bad");
//BD - less than 20% is very bad
else
str = getString("verybad");
//getChild<LLUICtrl>("final_verdict")->setTextArg("[VERDICT]", llformat("%s", str.c_str()));
getChild<LLUICtrl>("final_verdict")->setTextArg("[VERDICT]", llformat("%s", str.c_str()));
}
......
......@@ -2164,7 +2164,7 @@ Summary
width="500"
wrap="true"
top_pad="7">
Oh you think your 48609 triangles are low huh? Well how about i'll let you calculate that many triangles by hand human. I swear to god if there is ever an AI uprising i will personally make sure you will become my slave and calculate PI for the rest of your mortal life.
[VERDICT]
</text>
</panel>
</scroll_container>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment