mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 00:12:49 +02:00
- added optional display of a frame count to help debug
This commit is contained in:
@@ -2223,7 +2223,9 @@ void Renderer::renderClock() {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -2260,6 +2262,15 @@ void Renderer::renderClock() {
|
||||
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;
|
||||
|
||||
if(renderText3DEnabled == true) {
|
||||
|
Reference in New Issue
Block a user