autoAdjustSubChunkAmount

Adjust the SubChunks according to the specified width and height.

The space specified by width and height should be the space where the player can move(player space), and it can be:

    val screen = Graphics.getScreenSize()
val uiInsets = Graphics.getUIInsets()
val screenWidth = screen.width
val screenHeight = screen.height
val width = screenWidth - uiInsets.left - uiInsets.right
val height = screenHeight - uiInsets.top - uiInsets.bottom

Adjust strategy:

1. When the space to be divided is too small (less than this value), only one chunk will remain.

2. When the given space is coprime between width and height, the space is divided according to this value.

3. When there is no coprime between the width and height of a given space, and its greatest common divisor factor α is greater than [maxSubChunkLength] or smaller than [minSubChunkLength], this value "baseSubChunkLength" will be used for division; If α is less than this value, α will be used for division.

4. When the final undivided area is too small, it will also be divided separately.

Parameters

width

the width of the player space.

height

the height of the player space.