2025-07-20 17:16 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003745Spring engineLuapublic2013-04-28 02:57
Reportermsafwan 
Assigned TojK 
PrioritylowSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version94.1 
Target VersionFixed in Version 
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
Attached Files

-Relationships
+Relationships

-Notes

~0010568

msafwan (reporter)

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

~0010570

msafwan (reporter)

OR!

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

-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
+Issue History