0ad/source/scriptinterface
Yves 3b49576fa6 Tunes GC scheduling a bit to reduce memory usage.
The main problem was that GC was only called from the simulation before
this patch. This means when you were waiting in the multiplayer lobby or
just had the GUI open, it only called GC when getting close to the JS
runtime size limit (I assume). Another problem was the Net Server
runtime which didn't GC either. Here the runtime size limit is 16 MB
though, so it's not too terrible. These issues have both been addressed
and GC has been given a bit more time per incremental slice to make sure
it gets done in time. It's still far from perfect, but there are too
many changes in SpiderMonkey related to GC, so I don't want to spend too
much time on this yet.

Refs #2808

This was SVN commit r15787.
2014-09-22 20:13:04 +00:00
..
tests Exact stack rooting for ScriptInterface::ToString. 2014-08-03 17:29:49 +00:00
AutoRooters.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
AutoRooters.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
DebuggingServer.cpp Adds precompiled.h include because Visual Studio checks for that even though the file only contains comments. 2014-01-05 13:58:38 +00:00
DebuggingServer.h I completely missed the header files when disabling the JS debugger. 2014-01-05 10:26:27 +00:00
NativeWrapperDecls.h More exact stack rooting (CallFunction object). 2014-07-31 19:18:40 +00:00
NativeWrapperDefns.h Exact stack rooting for GetClass and GetPrivate. 2014-08-03 17:53:21 +00:00
ScriptConversions.cpp Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
ScriptExtraHeaders.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ScriptInterface.cpp Tunes GC scheduling a bit to reduce memory usage. 2014-09-22 20:13:04 +00:00
ScriptInterface.h Tunes GC scheduling a bit to reduce memory usage. 2014-09-22 20:13:04 +00:00
ScriptStats.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ScriptStats.h Add JS memory usage to profiler. 2010-08-02 19:23:58 +00:00
ScriptTypes.h Suppresses noisy clang/libc++ warnings from SpiderMonkey headers on OS X 2014-09-07 23:58:22 +00:00
ScriptVal.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ScriptVal.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ThreadDebugger.cpp Adds precompiled.h include because Visual Studio checks for that even though the file only contains comments. 2014-01-05 13:58:38 +00:00
ThreadDebugger.h I completely missed the header files when disabling the JS debugger. 2014-01-05 10:26:27 +00:00