We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4568ee commit 74a0b5eCopy full SHA for 74a0b5e
cocos2d/CCDirector.m
@@ -864,7 +864,8 @@ -(void) showStats
864
NSString *fpsstr = [[NSString alloc] initWithFormat:@"%.1f", _frameRate];
865
[_FPSLabel setString:fpsstr];
866
867
- NSString *draws = [[NSString alloc] initWithFormat:@"%4lu", (unsigned long)__ccNumberOfDraws];
+ // Subtract one to exclude the batch for actually rendering the stats label itself.
868
+ NSString *draws = [[NSString alloc] initWithFormat:@"%4lu", (unsigned long)__ccNumberOfDraws - 1];
869
[_drawsLabel setString:draws];
870
}
871
0 commit comments