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"

Network - How to debug/show network traffic in UE4?

Hello guys, I've previously posted a question regarding some issues that we had connecting to a listening server (that I host locally). We find out that it was our router and it got fixed with a suggested port forwarding. Now the problem is that it lags a lot. I for instance tried very small networking examples (custom third person template) with two players and I see other guys pooping (as if the interpolation never existed) and updating very slowly. However wen I test locally (in my LAN) everything it's gazillions fluid. I wondering how can I know if my Router is slowing things down? Is there a way to debug/show network traffic in UE4? Any suggestions would be appreciated! :)

Product Version: Not Selected
Tags:
more ▼

asked Jun 06 '14 at 07:40 PM in Using UE4

avatar image

tatoforever
21 2 3 6

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

2 answers: sort voted first

There is a network profiler application included with the engine. It can show you a lot of information about how much bandwidth is being used, how many properties and actors are being replicated, and more. It is an advanced tool and we'd like to improve the interface in the future, but it should get you started.

It's located at < your Unreal install directory >//Engine/Binaries/DotNET/NetworkProfiler.exe.

In order to view data in the application, you have to capture a profile while your game is running. To do this, enter the command 'netprofile' in the console to start recording and enter it again to stop recording. After recording stops, there should be an *.nprof file in your game's Saved/Profiling directory. Open this file in the Network Profiler and you can see the statistics that were recorded.

Note that more information is recorded when profiling on the server, so you may find that more useful in debugging.

more ▼

answered Jun 06 '14 at 08:35 PM

avatar image

Ryan Gerleve STAFF
1.1k 25 12 49

avatar image tatoforever Jun 06 '14 at 09:35 PM

Thanks for the tips and info Ryan! :)

avatar image tatoforever Jun 06 '14 at 10:19 PM

Sorry but when I type netprofile in the console, nothing happens, it says "Unrecognized Command".

avatar image Ryan Gerleve STAFF Jun 06 '14 at 10:31 PM

Ah, sorry. I forgot to mention that you need to use an editor build to enable that command!

avatar image CreatureNZ Oct 21 '14 at 03:32 AM

Does this still work in 4.5? Just tried it and all it will output is a *.tmp file

avatar image Juanma.elx Nov 04 '14 at 10:01 AM

Once you type 'netprofile', the engine will generate a .tmp. And then, when you want to finish the network profile recording, you have to type again 'netprofile'. Automatically, the tmp file will be converted into the desired .nrprof file.

avatar image MADHOUSE Jul 23 '15 at 11:08 PM

it does not work for me, using 4.8.2, it only outputs a .tmp file even if I type "netprofile" twice.

avatar image Omberone Sep 04 '15 at 12:23 PM

Same for me

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

Any infos on how this works in 4.8.3? It keeps not creating the file properly...

more ▼

answered Nov 04 '15 at 10:47 AM

avatar image

hazzardous1984
119 13 15 19

(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