修复序列和任务超长导致渲染开销太大卡死 close #137
This commit is contained in:
@@ -47,17 +47,17 @@ function DATA.pasteSequence(str)
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
if b>=97 and b<=125 then
|
if b>=97 and b<=125 then
|
||||||
ins(BAG,reg)if #BAG>2600 then return end
|
ins(BAG,reg)
|
||||||
reg=b-96
|
reg=b-96
|
||||||
elseif b>=34 and b<=96 then
|
elseif b>=34 and b<=96 then
|
||||||
for _=1,b-32 do
|
for _=1,b-32 do
|
||||||
ins(BAG,reg)if #BAG>2600 then return end
|
ins(BAG,reg)
|
||||||
end
|
end
|
||||||
reg=false
|
reg=false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if reg then ins(BAG,reg)if #BAG>2600 then return end end
|
if reg then ins(BAG,reg)end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -215,9 +215,7 @@ function DATA.pasteMission(str)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if reg then
|
if reg then ins(MISSION,reg)end
|
||||||
ins(MISSION,reg)
|
|
||||||
end
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -230,16 +228,14 @@ function DATA.copyQuestArgs()
|
|||||||
ENV.sequence
|
ENV.sequence
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
do--function DATA.pasteQuestArgs(str)
|
function DATA.pasteQuestArgs(str)
|
||||||
function DATA.pasteQuestArgs(str)
|
if #str<4 then return end
|
||||||
if #str<4 then return end
|
local ENV=CUSTOMENV
|
||||||
local ENV=CUSTOMENV
|
ENV.holdCount= str:byte(1)-48
|
||||||
ENV.holdCount= str:byte(1)-48
|
ENV.ospin= str:byte(2)~=90
|
||||||
ENV.ospin= str:byte(2)~=90
|
ENV.missionKill= str:byte(3)~=90
|
||||||
ENV.missionKill= str:byte(3)~=90
|
ENV.sequence= str:sub(4)
|
||||||
ENV.sequence= str:sub(4)
|
return true
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ function scene.draw()
|
|||||||
end
|
end
|
||||||
if x>1140 then
|
if x>1140 then
|
||||||
x,y=100,y+36
|
x,y=100,y+36
|
||||||
|
if y>1260 then break end
|
||||||
end
|
end
|
||||||
if i<=j then
|
if i<=j then
|
||||||
setFont(35)
|
setFont(35)
|
||||||
|
|||||||
@@ -157,6 +157,7 @@ function scene.draw()
|
|||||||
end
|
end
|
||||||
if x>1060 then
|
if x>1060 then
|
||||||
x,y=120,y+50
|
x,y=120,y+50
|
||||||
|
if y>1260 then break end
|
||||||
end
|
end
|
||||||
if i<=j then
|
if i<=j then
|
||||||
local B=miniBlock[L[i]]
|
local B=miniBlock[L[i]]
|
||||||
|
|||||||
Reference in New Issue
Block a user