소스 검색

change: _console FPS

micha 11 달 전
부모
커밋
f9e4487b43
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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()