Skip to content
Snippets Groups Projects
Commit ad0efb9f authored by dg's avatar dg
Browse files

Tweaked garbage collector settings, it should be better for people who had huge lag spikes

git-svn-id: http://svn.net-core.org/repos/t-engine4@2754 51575b47-30f0-44d4-a5cc-537603b46e54
parent db1d99c2
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,11 @@ else
print("LuaVM:", _VERSION)
end
-- Setup the GC
collectgarbage("setpause",100)
collectgarbage("setstepmul",400)
collectgarbage("restart")
-- Setup correct lua path
package.path = "/?.lua"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment