Foxlider / FASTER

Full rebuild of Flax's tool for installing and updating Arma 3 server with built in features for managing Steam Workshop mods.
GNU General Public License v3.0
126 stars 36 forks source link

[BUG] Bandwidth Presets #25

Closed MildlyInterested closed 3 years ago

MildlyInterested commented 3 years ago

Describe the bug Perfomance Presets are broken.

To Reproduce Go to "Perfomance" Tab Expected behaviour MinBandwidth = should be the corrent bandwidth number;

Actual behaviour It isnt.

Additional context Will provide some presets later.

MildlyInterested commented 3 years ago

Arma Default Values

MinBandwidth=131072; //0.131072 Megabit
//MaxBandwidth=2e9; //2 gbit

MaxMsgSend = 128;
MaxSizeGuaranteed = 512;
MaxSizeNonguaranteed = 256;

MinErrorToSend = 0.001
MinErrorToSendNear = 0.01;

MaxCustomFileSize = 0; //not mentioned so set to 0
class sockets{maxPacketSize = 1400;};

1Mbit Preset

MinBandwidth=1000000; //1 Megabit
//MaxBandwidth=2e9; //2 gbit

MaxMsgSend = 128; //default
MaxSizeGuaranteed = 512; //default
MaxSizeNonguaranteed = 256; //default

MinErrorToSend = 0.001 //default
MinErrorToSendNear = 0.01; //default

MaxCustomFileSize = 0; //not mentioned so set to 0
class sockets{maxPacketSize = 1400;}; //default

250 Mbit Preset

MinBandwidth=250000000; //250 Megabit
//MaxBandwidth=2e9; //2 gbit

MaxMsgSend = 256; // double default
MaxSizeGuaranteed = 512; //default
MaxSizeNonguaranteed = 256; //default

MinErrorToSend = 0.001 //default
MinErrorToSendNear = 0.01; //default

MaxCustomFileSize = 160000; //0.16 MByte  not default but feels right
class sockets{maxPacketSize = 1400;}; //default

500 Mbit Preset

MinBandwidth=500000000; //500 Megabit
//MaxBandwidth=2e9; //2 gbit

MaxMsgSend = 256; // double default
MaxSizeGuaranteed = 512; //default
MaxSizeNonguaranteed = 256; //default

MinErrorToSend = 0.001 //default
MinErrorToSendNear = 0.01; //default

MaxCustomFileSize = 320000; //0.32 MByte  not default but feels right
class sockets{maxPacketSize = 1400;}; //default

1000 Mbit Preset

MinBandwidth=1000000000; //1000 Megabit
//MaxBandwidth=2e9; //2 gbit

MaxMsgSend = 256; //double default
MaxSizeGuaranteed = 512; //default
MaxSizeNonguaranteed = 256; //default

MinErrorToSend = 0.001 //default
MinErrorToSendNear = 0.01; //default

MaxCustomFileSize = 320000; //0.32 MByte double from previous preset because why not
class sockets{maxPacketSize = 1400;}; //default

2000/MAXIMUM Mbit Preset

MinBandwidth=2000000000; //2 gbit DO NOT EXCEED OTHERWISE MILDLY STARTS DRINKING AGAIN and you'll have integer overflow
//MaxBandwidth=2e9; //2 gbit

MaxMsgSend = 512; //4x default
MaxSizeGuaranteed = 512; //default
MaxSizeNonguaranteed = 256; //default

MinErrorToSend = 0.001 //default
MinErrorToSendNear = 0.01; //default

MaxCustomFileSize = 640000; //0.64 MByte double from previous preset because why not
class sockets{maxPacketSize = 1400;}; //default

Quote from BI Wiki:

The greatest level of optimization can be achieved by setting the MaxMsgSend and MinBandwidth parameters. For a server with 1024 kbps we recommend the following values: MaxMsgSend = 256; MinBandwidth = 768000;

So I wouldn't bother changing anything else, MaxCustomFileSize is more of an admin decision and would probably only affect performance if people have massive custom faces/sounds.

Foxlider commented 3 years ago

Fixed in Hotfix