View Issue Details

IDProjectCategoryView StatusLast Update
0003745Spring engineLuapublic2013-04-28 02:57
Reportermsafwan Assigned TojK  
PrioritylowSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version94.1 
Summary0003745: Can there be an option to disabled LUA GC entirely from LUA side or from config file?
DescriptionCurrently I'm trying to manually manage LUA gc, but engine keep restarting LUA gc each frame after I disabled them. Could there be an option to turn off LUA gc forever?

I tried commented line 422 here and it disable LUA gc completely:
https://github.com/spring/spring/blob/develop/rts/Lua/LuaHandle.cpp#L422

I just want a way to make this official option.
Of course there is a risk that LUA will take too much memory (I tried turning off the gc and without widget's gc the LUA took 1gb incredibly quickly)

Maybe put the option at LUA interface?
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

msafwan

2013-04-27 06:37

reporter   ~0010568

Okay, maybe not as config, but preferable as callin at LUA interface.

msafwan

2013-04-27 06:50

reporter   ~0010570

OR!

maybe better is to code them in Spring itself. Allow the amount of time spend on GC be configurable.

Issue History

Date Modified Username Field Change
2013-04-27 06:36 msafwan New Issue
2013-04-27 06:37 msafwan Note Added: 0010568
2013-04-27 06:50 msafwan Note Added: 0010570
2013-04-28 02:57 jK Status new => resolved
2013-04-28 02:57 jK Resolution open => fixed
2013-04-28 02:57 jK Assigned To => jK