~starkingdoms/starkingdoms

d1262109b3857832279d4428ce8736579e4e3cd9 — ghostlyzsh 1 year, 7 months ago 2baac6a
6 tps -> 60 tps
4 files changed, 8 insertions(+), 3 deletions(-)

M Cargo.lock
M server/Cargo.toml
M server/config.toml
M server/src/main.rs
M Cargo.lock => Cargo.lock +1 -0
@@ 3794,6 3794,7 @@ dependencies = [
 "starkingdoms-common",
 "toml 0.8.12",
 "tracing-subscriber",
 "tracing-tracy",
 "tungstenite",
]


M server/Cargo.toml => server/Cargo.toml +1 -0
@@ 19,6 19,7 @@ hex = "0.4"
crossbeam-channel = "0.5"
tungstenite = "0.21"
toml = "0.8"
tracing-tracy = "0.11.0"

[features]
default = []

M server/config.toml => server/config.toml +2 -2
@@ 25,6 25,6 @@ required_permission_level = 0

[server]
tick_time_ms = 1
world_fixed_timestep = 0.1666
world_fixed_timestep = 0.01666
bind = { ip = "0.0.0.0", port = 3000 }
max_free_parts = 50
\ No newline at end of file
max_free_parts = 50

M server/src/main.rs => server/src/main.rs +4 -1
@@ 160,7 160,9 @@ fn main() {
        )
        .add_systems(FixedUpdate, save_eligibility)
        .add_systems(FixedUpdate, convert_modules)
        .insert_resource(Time::<Fixed>::from_seconds(server_config.server.world_fixed_timestep))
        .insert_resource(Time::<Fixed>::from_seconds(
            server_config.server.world_fixed_timestep,
        ))
        .run();

    info!("Goodbye!");


@@ 1758,6 1760,7 @@ fn on_close(
                            });
                        }
                    }
                    std::process::exit(0);
                }
            }
        }