You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
541 B
Lua

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

collectgarbage("setpause", 120) -- 内存增大 1 倍200/100时自动释放一次内存 200 是默认值)
collectgarbage("setstepmul", 1000) -- 收集器单步收集的速度相对于内存分配速度的倍率,设置 200 的倍率等于 2 倍200/100200 是默认值)
class = require("oop.middleclass")
handler = require("oop.handler") -- 支持 function 和 对象内部 handler 不过后者热更会更友好
gEnv = require("env")
if gEnv.DEBUG then
require("tracing.skynet")
require("swt.debug")
end