x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Why is ping so high when client & server are on the same machine?

When using the 'net stat' command, the client is reporting a ping of ~35, even with the client instance is running on the same machine as the server. How should we be interpreting the ping value reported here? Is this expected or could there be a setting that is artificially increasing latency for us?

We have verified that PacketSimulationSettings are turned off (i.e. PktLag=0, PktLagVariance=0, etc).

Any insight would be appreciated.

I have attached a screenshot showing our net stat output (server & client running on the same machine).

alt text

Product Version: UE 4.8
Tags:
ue4_ping.png (418.5 kB)
more ▼

asked Jul 14 '15 at 03:37 PM in Using UE4

avatar image

Clapfoot
401 16 22 32

avatar image mrooney Jul 14 '15 at 03:44 PM

Have you messed with any of the values described in this post?

https://www.unrealengine.com/blog/finding-network-based-exploits

avatar image Clapfoot Jul 14 '15 at 03:53 PM

Thanks for the reply. As I mentioned in my post, we disabled all PacketSimulationSettings.

avatar image mrooney Jul 14 '15 at 03:55 PM

Ah sorry :(

Are you running in the editor, or from a packaged build?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

35 milliseconds is suspiciously close to 30 fps. Does this value match your frame rate?

Without looking at the code too closely, I suspect this relates to something that is only called once a frame - possibly UNetConnection::Tick().

I wouldn't worry about 35 milliseconds. Keep in mind that client side moves (that originate from player input) are only passed from the client to the server once per frame (via a reliable message) - any network latency is on top of this.

more ▼

answered Jul 14 '15 at 09:19 PM

avatar image

psychogony
246 7 3 9

avatar image Clapfoot Jul 15 '15 at 05:41 PM

Yea we suspected that the 35ms had to do with the tick rate somehow, but it'd be nice to get a confirmation from Epic on this.

avatar image psychogony May 23 '16 at 09:56 AM

Looked at this again due to problems which turned out to be frame rate related (rendering delays rather than bandwidth saturation).

This is just tick induced lag (when each client reads the local clock). Set your frame rate to fixed 90 fps and when windowed you should see a ping <= 10. ie.DefaultEngine.ini [/Script/Engine.Engine] bUseFixedFrameRate=True FixedFrameRate=90.000000 MinDesiredFrameRate=90.000000 bSmoothFrameRate=True

Note that there are many (many) settings that affect net bandwidth and different code paths for editor/game windowed/fullscreen listen server/dedicated server. It looks like a lot of effort has been put into balancing the default settings... Other things to check: [/Script/OnlineSubsystemUtils.IpNetDriver] bClampListenServerTickRate=False NetServerMaxTickRate=XX MaxClientRate=XXXXX MaxInternetClientRate=XXXXX

[/Script/Engine.Engine] NetClientTicksPerSecond=XX

[/Script/Engine.GameNetworkManager] TotalNetBandwidth=XXXXX MaxDynamicBandwidth=XXXX MinDynamicBandwidth=XXXX

Do a search for '::GetMaxTickRate(); in the source if you want to know more.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question