From d6eb1cd505f806705da252c00e5eb1394bd58dea Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Thu, 13 Jan 2022 10:07:42 -0500 Subject: [PATCH] Print fps --- Slang/script.slg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Slang/script.slg b/Slang/script.slg index 13724d0..f63ab55 100644 --- a/Slang/script.slg +++ b/Slang/script.slg @@ -58,9 +58,10 @@ func Update(deltaTime) float stopSpeed = deltaTime * 15 float newY = lPaddleTargetPosition.y float lerpedY = Lerp(oldY, newY, stopSpeed) - print "0 < " + newY + " < " + SCREENH + //print "0 < " + newY + " < " + SCREENH lPaddle.position = NVec2(newX, lerpedY) + print "FPS: " + 1 / deltaTime // Finally draws all of the sprites