Calculating correct powers for canvasScale, which also prevents infinite loops when hosting a server

This commit is contained in:
Yousef Khadadeh 2025-10-02 11:55:50 +03:00
parent c1045dcee7
commit b0ecf7896f
4 changed files with 11 additions and 10 deletions

View file

@ -57,4 +57,4 @@ enum ClientCommands : MessageCommandType {
#define VERSION_STRING "0.2.0"
// Arbitrary value. Higher scale up values lead to less scale up events (which can cause stuttering), but leads to larger numbers overall, which can cause a tiny bit of lag and increased memory usage
#define CANVAS_SCALE_UP_STEP WorldScalar("2")
#define CANVAS_SCALE_UP_STEP WorldScalar("100000000000000000000000000000000000000000000000000")