This pull request adds a setting to control the maximum number of available worker threads for chunk processing. More precisely, it controls the number of pooled threads available to ChunkProcessingPipeline.
From testing, I have found that reducing the number of chunk threads can noticeably reduce overall CPU utilisation. Although modern operating systems are very good at multitasking, I have noticed detrimental system-wide effects when the game occupies too much processor time at once. The ideal quantity will vary from player to player and so I think this may be a useful option to have configurable.
How to test
From the main menu, enter the Video Settings screen via Settings->Video.
Scroll down until you see the Chunk Threads setting on the left.
Move the slider around to different values. When the slider is 0, it should say Auto.
For each possible slider value, start a new game. You should still see chunks being generated around you. With fewer chunk threads new chunks may appear more slowly but the overall CPU utilisation should be lower (this may vary depending on your machine).
Quit the game and re-open it. Verify that the setting you chose before is still visible on the Settings->Video screen.
Contains
This pull request adds a setting to control the maximum number of available worker threads for chunk processing. More precisely, it controls the number of pooled threads available to
ChunkProcessingPipeline
.From testing, I have found that reducing the number of chunk threads can noticeably reduce overall CPU utilisation. Although modern operating systems are very good at multitasking, I have noticed detrimental system-wide effects when the game occupies too much processor time at once. The ideal quantity will vary from player to player and so I think this may be a useful option to have configurable.
How to test
Video Settings
screen viaSettings->Video
.Chunk Threads
setting on the left.Auto
.Settings->Video
screen.