However, the "-ping" command only shows the ping value on (the top right of) your screen for 2 seconds, after which you have to type another "-ping" command to check your ping again. This is not only bothersome, but it can be annoying to other players in your team too.
A good way to show both FPS and ping permanently (without typing "-ping" every 2 seconds) is by using the console commands.
Showing the frame per seconds (FPS) when gaming can help you to differentiate whether the lagness comes from latency or your computer hardware. While experienced players can easily tell the difference between 60FPS and 50FPS by their naked eyes, most players require the assistance of some FPS monitoring tools to check their FPS.
To do that, you have to type "net_graph 1" in your console
The Console
To view your ping and FPS permanently in the game screen, you must first enable the Steam Console for your game (in this case, Dota 2). Of course there are third-party options for showing ping in your game (such as http://www.pcwintech.com/simple-ping), but that is out of the scope of this article.
Firstly, navigate to your Steam Library and right click on Dota 2. Select and click on "Properties"
The console does not show the FPS and ping though. To do that, you have to type "net_graph 1" in your console to activate the erm... net_graph, which shows both ping and FPS in your game. To disable net_graph, simply show up the Steam Console (by pressing the "`" key) and type "net_graph 0".
Make your setting permanent by changing those values in this file...
Console Commands | What it does |
---|---|
net_graphheight "number" | Define the height of net_graph base on the number you type |
net_graphinsetbottom "number" | Set the distance of net_graph's position from the bottom of your screen |
net_graphinsettop "number" | Set the distance of net_graph's position from the top of your screen |
net_graphinsetleft "number" | Set the distance of net_graph's position from the left of your screen |
net_graphinsetright "number" | Set the distance of net_graph's position from the right of your screen |
net_graphproportionalfont "number" | Toggle the font size of net_graph to be proportional to your screen's resolution. Change the number to "1" to enable this function, change the number to "0" to deactivate this function |
*:\Program Files\Steam\steamapps\common\dota 2 beta\dota\cfg\autoexec.cfg
Find the corresponding values for "net_graph" and associated commands and change it values.
net_graph 1
net_graphheight "number"
net_graphinsetleft "number"
net_graphinsetright "number"
net_graphinsettop "number"
net_graphinsetbottom "number"
net_graphproportionalfont "number
That's it. Enjoy your game.