Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GC so collection rate is proportional to alloc rate
- Previous comments in dobjgc.cpp suggested that StepMul was used to determine how quickly garbage was collected based on how quickly memory was being allocated. This was not the case. Now it is. - Remove calls to CheckGC from the thinkers. With GC running at a stable rate (once per frame), there should be no need to inject pauses into the collection process to keep it from injecting stutters (provided StepMul is sane). The risk of running out of memory because we don't run a collection pass absolutely every thinker should be practically zero. - Reduce DEFAULT_GCMUL from 400 to 200, since it does what it says now instead of something else.
- Loading branch information
Showing
3 changed files
with
66 additions
and
33 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