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