Skip to content

Commit a3ba111

Browse files
committed
added FPS counter to life.py
1 parent 76ac85b commit a3ba111

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/life.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def main():
153153
else:
154154
time.sleep(0.01)
155155
tdl.flush()
156+
tdl.set_title("Conway's Game of Life - %i FPS" % tdl.get_fps())
156157

157158

158159
if __name__ == '__main__':

0 commit comments

Comments
 (0)