Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix #6080
add knobs
- Loading branch information
rt
committed
Nov 26, 2018
1 parent
2d04e27
commit 4d08e7f
Showing
8 changed files
with
85 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */ | ||
|
||
#ifndef SPRING_LUA_GARBAGE_COLLECT_CTRL_H | ||
#define SPRING_LUA_GARBAGE_COLLECT_CTRL_H | ||
|
||
#include <limits> | ||
|
||
struct SLuaGarbageCollectCtrl { | ||
// maximum number of lua_gc calls made in each CollectGarbage loop | ||
int itersPerBatch = std::numeric_limits<int>::max(); | ||
|
||
// number of steps executed by a single lua_gc call | ||
int numStepsPerIter = 10; | ||
int minStepsPerIter = 1; | ||
int maxStepsPerIter = 10000; | ||
|
||
// CollectGarbage loop runtime bounds, in milliseconds | ||
float minLoopRunTime = 0.0f; | ||
float maxLoopRunTime = 100.0f; | ||
|
||
float baseRunTimeMult = 0.0f; | ||
float baseMemLoadMult = 0.0f; | ||
}; | ||
|
||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters