actboy168 / MoeHero

我的英雄不可能那么萌
GNU General Public License v3.0
80 stars 38 forks source link

句柄检测一直在增长,游戏越来越慢 #19

Closed ghost closed 4 years ago

ghost commented 4 years ago

请问是何种原因

sumneko commented 4 years ago

一般说明有无用对象没有正确施放(内存泄漏)

ghost commented 4 years ago

怎么检测到是什么对象呢

sumneko commented 4 years ago

你可以在 level = 0 的情况下用整数遍历所有 handle ,然后用 jass.debug 库中的 handledef 函数查看 handle 的定义

ghost commented 4 years ago

level = 0 是指什么?大神指点

sumneko commented 4 years ago

见文档:https://github.com/actboy168/jass2lua/blob/master/lua-engine.md

ghost commented 4 years ago

游戏里面的ac代表什么

sumneko commented 4 years ago

我写的底层库喜欢放在ac命名的表里,历史原因而且打起来顺手

ghost commented 4 years ago

mt呢

sumneko commented 4 years ago

metatable的缩写

ghost commented 4 years ago

lua变量名混淆有什么库可以使用么 ,比如这种形式:

ghost commented 4 years ago

望大神指点

ghost commented 4 years ago

一般说明有无用对象没有正确施放(内存泄漏)

能不能把无用对象去掉

ghost commented 4 years ago

一般说明有无用对象没有正确施放(内存泄漏)

能不能把无用对象去掉

有工具检测吗

ghost commented 4 years ago

你可以在 level = 0 的情况下用整数遍历所有 handle ,然后用 jass.debug 库中的 handledef 函数查看 handle 的定义

如何遍历

sumneko commented 4 years ago

不回答这种基础语法问题或可以通过简单测试就可以解决的问题。