04-26-2016, 07:29 PM
(This post was last modified: 04-26-2016, 07:29 PM by LogicParrot.)
That could work. I've been thinking about the "if it detects" part. One way to do it would be this:
- A chunk is either bored or not bored.
- If a chunk is visited, it becomes not bored
- If a chunk is not visted for X ticks, it becomes bored.
- If there are too many bored chunks (e.g. more than half of loaded chunks), decrease max RAM until the amount of bored chunks is acceptable, or until the defined Minimum is reached,
- If there are too few bored chunks, Increase max RAM until the amount of bored chunks is acceptable, or until the defined maximum is reached.
- A chunk is either bored or not bored.
- If a chunk is visited, it becomes not bored
- If a chunk is not visted for X ticks, it becomes bored.
- If there are too many bored chunks (e.g. more than half of loaded chunks), decrease max RAM until the amount of bored chunks is acceptable, or until the defined Minimum is reached,
- If there are too few bored chunks, Increase max RAM until the amount of bored chunks is acceptable, or until the defined maximum is reached.