• Announcements

    • Jervant

      Bohemia Store Steam Redeem   06/24/17

      We started experiencing problems with the Steam redeem from our Store on Friday June 23rd.   For anyone that got affected by this, please go to your store account, after you select the product you purchased, you should see your steam key with a link to a how to article to activate it manually through Steam.   We apologize for the inconvenience.
Sign in to follow this  
Followers 0
terox

All about MinErrorToSendNear

1 post in this topic

All about MinErrorToSendNear

This thread is part of a much wider discussion on server bandwidth optimisation Tutorial: Server Bandwidth & Optimisation

Useful Links

What the BIKI states

MinErrorToSendNear=<limit>;

Minimal error to send updates across network for near units.

Using larger value can reduce traffic sent for near units. Used to control client to server traffic as well.

Introduced in ArmA 2 1.60, Default: 0.01

What is known

The engines runs calculations on objects comparing the perceived state of an object to the actual state of an object. The outcome of this calculation is an "error value"

When the error value is greater than the value set by MinErrorToSend data is sent across the network to update the clients or server about the state of the object

Typically the type of data that is being checked in the computation is velocity, vector, position and distance to the player object etc

To give you an idea of the amount of movement that can occur before these objects are updated by this monitor

For the default value 0.001, an object at a range of

  • 1 km can move 50 metres
  • 2km can move 200m

In reality the actual distance it moves before an update is sent is likely to be much less as the velocity, vector and other object data is likely to change forcing an earlier update.

The gaps between these updates are filled using a simulation based on last known values and smoothed by interpolation (introduced in 1.60, before that you could see the jumps caused by the estimated simulation not matching the real object position).

The Minerrortosendnear defines the minimum error value that has to be returned by the error calculation on the object before updates are sent

Increasing this value decreases the amount of data being sent across the network

Setting the value too high creates a "warping" effect where you see moving objects teleport instead of smoothly moving

Relationship to other settings

The calculation also takes into consideration another setting called MinErrorToSend

What you are trying to achieve

Setting the MinErrorToSendnear as high as possible without seeing any teleporting and maintaining what visually appears to be smooth movement

The default value is 0.01

How to test the value

You could perhaps test this by having a test mission where AI at failrly close distances, 50m perhaps are running across your path left to right and vice versa and view their movements through binoculars

Increasing the MinErrortosend from default until you start to see non smooth movement, then reduce the setting a little

What we may need to know:

  1. Would this value need to be lower for PVP compared to COOP
  2. Would the optimum value change depending on the number of players that the server supports?
  3. Anything else else ?

Calculation Formulae

This is an internal engine calculation and not a calculation you would use to set your value

The formula can be derived as:

error*20/dist^2>MinErrorToSend

dist^2/20<error/MinErrorToSend

dist = sqrt(20*error/MinErrorToSend)

Edited by Terox

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0