summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-11-29 12:03:18 +0100
committerRobin Gareus <robin@gareus.org>2017-11-29 12:06:42 +0100
commit77d16999b536364d9a5ef430c36d0ef0863533a7 (patch)
tree10ccb2b268577ce21cae4aa51fbe0cd5f4f4b415 /libs/ardour
parent44cf44883927c06fd0b8277c292716ea20be4eb9 (diff)
Tweak Lua GC
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/luaproc.cc2
-rw-r--r--libs/ardour/session.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc
index 6617e8582f..9122fb32fb 100644
--- a/libs/ardour/luaproc.cc
+++ b/libs/ardour/luaproc.cc
@@ -744,7 +744,7 @@ LuaProc::connect_and_run (BufferSet& bufs,
int64_t t1 = g_get_monotonic_time ();
#endif
- lua.collect_garbage_step ();
+ lua.collect_garbage_step (100 /*kB*/);
#ifdef WITH_LUAPROC_STATS
++_stats_cnt;
int64_t t2 = g_get_monotonic_time ();
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index dabd4bc187..039288952b 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -5486,7 +5486,7 @@ Session::try_run_lua (pframes_t nframes)
Glib::Threads::Mutex::Lock tm (lua_lock, Glib::Threads::TRY_LOCK);
if (tm.locked ()) {
try { (*_lua_run)(nframes); } catch (...) { }
- lua.collect_garbage_step ();
+ lua.collect_garbage_step (100 /*kB*/);
}
}