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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user