Prettier gpu timing label.

This commit is contained in:
Vincent Lejeune 2014-05-10 20:16:27 +02:00
parent 5d3b6bba4d
commit 6bf67523b9

View File

@ -389,8 +389,23 @@ void Profiler::draw()
if (hovered_gpu_marker != Q_LAST)
{
static const char *Phase[Q_LAST] =
{
"Solid Pass 1",
"Shadows",
"Lights",
"SSAO",
"Solid Pass 2",
"Transparent",
"Particles",
"Displacement",
"Godrays",
"Bloom",
"Tonemap",
"Motion Blur"
};
std::ostringstream oss;
oss << "GPU marker " << hovered_gpu_marker << " : " << hovered_gpu_marker_elapsed << " us";
oss << Phase[hovered_gpu_marker] << " : " << hovered_gpu_marker_elapsed << " us";
font->draw(oss.str().c_str(), GPU_MARKERS_NAMES_POS, video::SColor(0xFF, 0xFF, 0x00, 0x00));
}
}