- added optional display of a frame count to help debug
This commit is contained in:
parent
b9e3f57894
commit
c6368b221e
|
@ -2223,7 +2223,9 @@ void Renderer::renderClock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Config &config= Config::getInstance();
|
Config &config= Config::getInstance();
|
||||||
if(config.getBool("InGameClock","true") == false && config.getBool("InGameLocalClock","true") == false) {
|
if(config.getBool("InGameClock","true") == false &&
|
||||||
|
config.getBool("InGameLocalClock","true") == false &&
|
||||||
|
config.getBool("InGameFrameCounter","false") == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2260,6 +2262,15 @@ void Renderer::renderClock() {
|
||||||
str += szBuf;
|
str += szBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(config.getBool("InGameFrameCounter","false") == true) {
|
||||||
|
char szBuf[200]="";
|
||||||
|
snprintf(szBuf,200,"Frame: %d",game->getWorld()->getFrameCount() / 20);
|
||||||
|
if(str != "") {
|
||||||
|
str += " ";
|
||||||
|
}
|
||||||
|
str += szBuf;
|
||||||
|
}
|
||||||
|
|
||||||
//string str = szBuf;
|
//string str = szBuf;
|
||||||
|
|
||||||
if(renderText3DEnabled == true) {
|
if(renderText3DEnabled == true) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user