Conditions | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
1 | import platform |
||
46 | def tick(self): |
||
47 | ''' |
||
48 | Calculate Time delta, and keep running total of frames since last |
||
49 | fps calculation. |
||
50 | Must be called once per rendered frame. |
||
51 | ''' |
||
52 | super(FpsCounter, self).tick() |
||
53 | |||
54 | self.fpsTime += self.tickDelta |
||
55 | self.frames += 1 |
||
56 | |||
57 | return self.tickDelta |
||
58 | |||
70 |