BGE Profile : visual feedback bars and improvements

You can see a screenshot of the funcionality here:
http://wiki.blender.org/index.php/Doc:2.6/manual/Game_Engine/Performance/Display/Framerate_and_Profile

This patch creates a bar-like graph to quickly allow the game dev to see the performance changes.
Also it changes the font to monospace (too allow ' ' padding) and reduced shadow border to
match the blenderplayer one.

Patch finalized and commited at Global Game Jam Vancouver (last one, time to sleep forever now)
This commit is contained in:
Dalai Felinto
2013-01-28 01:26:36 +00:00
parent f64124cb78
commit 3a1ee13278
8 changed files with 170 additions and 6 deletions

View File

@@ -280,6 +280,16 @@ void KX_BlenderRenderTools::applyTransform(RAS_IRasterizer* rasty,double* oglmat
}
}
}
void KX_BlenderRenderTools::RenderBox2D(int xco,
int yco,
int width,
int height,
float percentage)
{
BL_draw_gamedebug_box(xco, yco, width, height, percentage);
}
void KX_BlenderRenderTools::RenderText3D(int fontid,
const char* text,
int size,