From f05e4ca10848523fa268e93bef85302ff05c41fb Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 2 Nov 2020 00:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=97=A9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 6b3b589e..c16f00bf 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -450,6 +450,10 @@ local devColor={ local FPS=love.timer.getFPS love.draw,love.update=nil--remove default draw/update function love.run() + local SETTING=SETTING + local DISCARD=gc.discard + local PRESENT=gc.present + local T=love.timer local Timer=T.getTime local STEP,GETDelta,WAIT=T.step,T.getDelta,T.sleep @@ -505,7 +509,7 @@ function love.run() FCT=FCT+SETTING.frameMul if FCT>=100 then FCT=FCT-100 - gc.discard()--SPEED UPUPUP! + DISCARD()--SPEED UPUPUP! BG.draw() gc.push("transform") @@ -575,7 +579,7 @@ function love.run() end LOG.draw() - gc.present() + PRESENT() end end