Trey Moller
Trey Moller
Confirmed resolved.
So the issue here as stated is lua threads have no push/pull variant methods of their own. We can kill 2 birds with one stone here. The main lua.cpp is...
Okay I came across some incorrect information before but I now know the issue. I have used incorrect indexing throughout the codebase as it is, I use a mix of...
Should be resolved with 8bedbda38436848d7154ef20106c23635b4145bc
Update - I am still searching for the cause. I wrote a small test program. I can confirm this code only takes up 193MB of ram. ```c #include #include #include...
Small note its not a solution but if we replace pushVariant on 200 and 201 with lua_pushinteger. Memory usage plumets. So it looks like some aspect of the recursive call...
I believe the issue is the fact that pushVariant returns a LuaError::errNone() which is not a null pointer and does use a memnew call. For the nested recursive calls of...
Fixed in 65d5799178b1a6d973466650ed827ea4b0c06b0a
> ok i realized that the issue is that reference-counting doesn't work for lua vars, pushing the resource into a reference array works as the resource stays referenced in gdscript....
I found out we are able to use metatables on lightuserdata. So that is what we are doing.