chukong / quick-cocos2d-x

quick-cocos2d-x is a quick framework, based on cocos2d-x. Make mobile games in Lua.
http://quick-x.com/
1.48k stars 868 forks source link

addSearchPath调用多次会导致卡顿 #536

Open jet6666 opened 9 years ago

jet6666 commented 9 years ago

Quick2.2.6

如果不小心addSearchPath多次,会导致uiLoader很慢

for i=1,10000 do cc.FileUtils:getInstance():addSearchPath("res/") cc.FileUtils:getInstance():addSearchPath("res/common/") end cc.uiloader:load(jsonFile)

flashjay commented 9 years ago

用 setSearchPaths