Quellcode durchsuchen

change: _console FPS

micha vor 11 Monaten
Ursprung
Commit
f9e4487b43
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      _console.py

+ 2 - 1
_console.py

@@ -966,7 +966,8 @@ class Main():
             time.sleep(1/30)
             if fps >= stop_fps:
                 fps_t = time.time()
-                print(round(stop_fps/(fps_t-fps_start),2),"core/fps") 
+                FPS = round(stop_fps/(fps_t-fps_start),2)
+                print("{:0.0f} core/fps".format(FPS) ) 
                 fps = 0
                 fps_start = time.time()