MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setAutoGarbageCollection

Method setAutoGarbageCollection

source/core/StarLua.cpp:571–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571void LuaEngine::setAutoGarbageCollection(bool autoGarbageColleciton) {
572 lua_gc(m_state, LUA_GCSTOP, autoGarbageColleciton ? 1 : 0);
573}
574
575void LuaEngine::tuneAutoGarbageCollection(float pause, float stepMultiplier) {
576 lua_gc(m_state, LUA_GCSETPAUSE, round(pause * 100));

Callers 1

TESTFunction · 0.45

Calls 1

lua_gcFunction · 0.85

Tested by 1

TESTFunction · 0.36