SQ has writtenI need someone who really struggles with CS2D performance.
General
Please Report All Current CS2D Issues
Please Report All Current CS2D Issues
SQ has written
Starkkz has written
BCG2000: It's just impossible that this could happen because the Lua engine wasn't even touched, it's just the import that was changed back then.addhook("always", "_always")
function _always()
local PList1 = player(0, "table")
local PList2 = player(0, "table")
local PList3 = player(0, "table")
local PList4 = player(0, "table")
local PList5 = player(0, "table")
	msg(collectgarbage("count"))
end

BCG2000: Are you sure that this is actually the Lua memory and not the overall dedicated server memory usage?collectgarbage("count") function, BlitzMax is still known for leaking memory on cyclic objects.
Starkkz: Yes, I'm sure. If no Lua scripts are used, the memory never leaks, which is something I also tested before.
BCG2000: That is incorrect. Bots in the server triggers a lot of events including shooting, killing, making particles and other things. Server does take that into account. Get 32 people playing in server without lua script and see if memory leak appears. hehe.
SQ: I was only using the bots as example because they are a script that all CS2D clients come with and thus discards the argument that it's my own code causing the problem.
SQ: Consider upgrading to Lua 5.1.5?
SQ: Can you consider adding a new hook?
SQ: Pls just do only the 2 hooks. Just please.
team hook..
SQ: Yeah this hook was needed since like beta 1!