diff --git a/GameEngine/src/main/java/gameEngine/Time.java b/GameEngine/src/main/java/gameEngine/Time.java index 49abfd7..dd026db 100644 --- a/GameEngine/src/main/java/gameEngine/Time.java +++ b/GameEngine/src/main/java/gameEngine/Time.java @@ -25,7 +25,6 @@ currentFps = frameCount / ((currentTime - lastFpsCheckTime) * 1E-9f); frameCount = 0; lastFpsCheckTime = currentTime; - System.out.println("Current FPS: " + currentFps); } // フレームレート制限 @@ -47,4 +46,8 @@ frameCount = 0; currentFps = 0; } + + public static int getFPS(){ + return (int)currentFps; + } }