TheNextLvl-net / worlds

World management system for modern paper servers
GNU General Public License v3.0
9 stars 0 forks source link

Will this world creation cause tps to drop? #3

Closed RedCarl closed 4 months ago

RedCarl commented 6 months ago

Will this world creation cause tps to drop?

NonSwag commented 6 months ago

World creation is handled on the main thread and only takes on average about 30ms in my experience The world generation is handled async by paper therefore the TPS won't suffer

RedCarl commented 5 months ago

world create test [15:44:49 INFO]: Preparing start region for dimension worlds:test [15:44:50 INFO]: [WorldGuard] Default configuration file written: config_world.yml [15:44:50 INFO]: [WorldGuard] Default configuration file written: blacklist.txt [15:44:50 INFO]: [WorldGuard] (test) TNT ignition is PERMITTED. [15:44:50 INFO]: [WorldGuard] (test) Lighters are PERMITTED. [15:44:50 INFO]: [WorldGuard] (test) Lava fire is PERMITTED. [15:44:50 INFO]: [WorldGuard] (test) Fire spread is UNRESTRICTED. [15:44:50 INFO]: [WorldGuard] Loaded configuration for world 'test' [15:44:50 INFO]: Time elapsed: 1593 ms [15:44:50 INFO]: Worlds » Successfully created the world test

RedCarl commented 5 months ago

It's not what you said, it took 1593 ms.

RedCarl commented 5 months ago

15:46:39 INFO: [⚡] TPS from last 5s, 10s, 1m, 5m, 15m: 15:46:39 INFO: [⚡] 14.43, 16.76, 19.38, 19.69, 19.9

15:46:39 INFO: [⚡] Tick durations (min/med/95%ile/max ms) from last 10s, 1m: 15:46:39 INFO: [⚡] 0.1/0.2/4.2/2837.1; 0.1/0.1/1.7/2837.1

15:46:39 INFO: [⚡] CPU usage from last 10s, 1m, 15m: 15:46:39 INFO: [⚡] 7%, 2%, 2% (system) 15:46:39 INFO: [⚡] 6%, 1%, 1% (process)

NonSwag commented 5 months ago

sorry for the mixup the 30ms average is for world loading not creation but it really depends on your setup if you try without worldguard you will see that it is much faster image

NonSwag commented 5 months ago

[15:46:39 INFO]: [⚡] TPS from last 5s, 10s, 1m, 5m, 15m: [15:46:39 INFO]: [⚡] 14.43, 16.76, 19.38, 19.69, 19.9 [15:46:39 INFO]: [⚡] [15:46:39 INFO]: [⚡] Tick durations (min/med/95%ile/max ms) from last 10s, 1m: [15:46:39 INFO]: [⚡] 0.1/0.2/4.2/2837.1; 0.1/0.1/1.7/2837.1 [15:46:39 INFO]: [⚡] [15:46:39 INFO]: [⚡] CPU usage from last 10s, 1m, 15m: [15:46:39 INFO]: [⚡] 7%, 2%, 2% (system) [15:46:39 INFO]: [⚡] 6%, 1%, 1% (process)

i dont think this is caused only by the world creation it may be a factor but not the main cause