From e6fcda73b15ea090d2ab7d5e124edc0c1761a42c Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sat, 1 Feb 2020 00:56:11 -0500 Subject: [PATCH] Update demo.lua --- windont/demo.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/windont/demo.lua b/windont/demo.lua index 1411566..afedf42 100644 --- a/windont/demo.lua +++ b/windont/demo.lua @@ -79,7 +79,6 @@ pBlit(TWO, 9, "ddddddddddddddddddd") pBlit(TWO, 10, "ddddddddddddddddddd") pBlit(TWO, 11, "ddddddddddddddddddd") - ONE.meta.metaTransformation = TF.meta("e-") TWO.meta.metaTransformation = TF.meta( string.rep("5", 50) .. @@ -87,6 +86,11 @@ TWO.meta.metaTransformation = TF.meta( string.rep("4", 1) ) +local round = function(number) + local v = 100000 + return math.floor(number * v) / v +end + while true do evt = {os.pullEvent()} @@ -137,7 +141,7 @@ while true do TWO.setTextColor(colors.gray) TWO.write("Draw time: ") TWO.setTextColor(colors.white) - TWO.write(windont.info.LAST_RENDER_DURATION .. " ") + TWO.write(round(windont.info.LAST_RENDER_DURATION) .. " ") for k,v in pairs(keysDown) do keysDown[k] = v + 1