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 4e9cc94 commit 5d4fdb7Copy full SHA for 5d4fdb7
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 for the stat label's own batch. This caused a lot of confusion on the forums...
868
+ NSString *draws = [[NSString alloc] initWithFormat:@"%4lu", (unsigned long)__ccNumberOfDraws - 1];
869
[_drawsLabel setString:draws];
870
}
871
0 commit comments