Question / Help Skyrocketing ping while ingame (CS:GO)

qwertye

New Member
Hello, tried streaming some Counter-Strike: Global Offensive today but all i have is problems after joined to the server. Here is testmy.net results:

Code:
Upload Connection Speed:: 1553 Kbps or 1.6 Mbps 
Upload Speed Test Size:: 33 MB or 33792 kB or 34603008 bytes
Upload Binary File Transfer Speed:: 194 kB/s
Tested At:: http://TestMy.net Version 13
Validation:: http://testmy.net/db/s41k7fc
More Stats:: http://testmy.net/compID/7625222003505 
Test Time:: 2013-05-01 03:54:26 Local Time 
Location:: Espoo, FI FI >> Destination:: Amsterdam, NL / Europe
1MB Upload in 5.28 Seconds - 1GB Upload in ~2 Hours - 28X faster than 56K
This test of exactly 33792 kB took 178.229 seconds to complete
Running at 122% of hosts average (Nebula Oy http://testmy.net/hoststats/nebula_oy) 
User Agent:: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.3
Computer:

i5 2500k @ 4.3GHz
8gb 1333mhz DDR3
HD 7970

Stream settings:

Server: London, UK
Use CBR checked
Bitrate: 1321/1321, as the estimator told
Audio Bitrate: AAC 64
Minimize Network Impact checked
Ingame resolution: 1600x900
Stream resolution: 800x450
FPS: 25
x264 CPU preset: fast

My normal ms is 8-10. I downloaded hilalpro's streamtest.bat and highest ms i reached was 45, as soon as i started game and joined server my ms starts to reach 100-250, see this.

^ SO, with bitrate 1321 and streamtest.bat running my ms is 20-40, as soon as i join some csgo server my ms will go to 100-250

Any ideas what could cause that pingspike? :< Kinda odd that when I tried to bump bitrate while running that streamtest.bat to 1450, highest ms was 80, i know that game will eat some bandwith but should it be lagging like that?

LOGFILE:
Code:
------------------------------------------
------------------------------------------
------------------------------------------
------------------------------------------
------------------------------------------
------------------------------------------
Open Broadcaster Software v0.51b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3293MHz
Physical Memory:  8155MB Total, 5583MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
Windows Version: 6.2 Build 9200 
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 7900 Series
  Video Adapter Dedicated Video Memory: 3202543616
  Video Adapter Shared System Memory: 4007618560
Using fixed low latency mode, factor 20
=====Stream Start: 2013-05-01, 03:56:27===============================================
  Multithreaded optimizations: On
  Base resolution: 800x450
  Output resolution: 800x450
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DG Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (ASUS Xonar DG Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
------------------------------------------
Video Encoding: x264
    fps: 25
    width: 800, height: 450
    preset: fast
    CBR: yes
    CFR: no
    max bitrate: 1321
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-lhr.justin.tv/app
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
Using Window Capture
------------------------------------------
------------------------------------------
Total frames rendered: 4125, number of frames that lagged: 7 (0.17%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-05-01, 03:59:12=================================================
Using fixed low latency mode, factor 20
=====Stream Start: 2013-05-01, 04:03:17===============================================
  Multithreaded optimizations: On
  Base resolution: 800x450
  Output resolution: 800x450
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DG Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (ASUS Xonar DG Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using Window Capture
------------------------------------------
Video Encoding: x264
    fps: 25
    width: 800, height: 450
    preset: fast
    CBR: yes
    CFR: no
    max bitrate: 1420
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-lhr.justin.tv/app
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
Using Window Capture
Total frames rendered: 1082, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-05-01, 04:04:00=================================================
Using fixed low latency mode, factor 20
=====Stream Start: 2013-05-01, 04:12:01===============================================
  Multithreaded optimizations: On
  Base resolution: 800x450
  Output resolution: 800x450
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (ASUS Xonar DG Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (ASUS Xonar DG Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
------------------------------------------
Video Encoding: x264
    fps: 25
    width: 800, height: 450
    preset: fast
    CBR: yes
    CFR: no
    max bitrate: 1450
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-lhr.justin.tv/app
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
Using Window Capture
Total frames rendered: 801, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End: 2013-05-01, 04:12:33=================================================
------------------------------------------
------------------------------------------
------------------------------------------
------------------------------------------

Profiler results:

==============================================================
frame - [100%] [avg time: 2.026 ms] [avg calls per frame: 1] [children: 74.1%] [unaccounted: 25.9%]
| scene->Preprocess - [35.1%] [avg time: 0.712 ms] [avg calls per frame: 1]
| video encoding and uploading - [39%] [avg time: 0.79 ms] [avg calls per frame: 1] [children: 34.7%] [unaccounted: 4.24%]
| | CopyResource - [0.592%] [avg time: 0.012 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.543%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | call to encoder - [32.6%] [avg time: 0.661 ms] [avg calls per frame: 0]
| | sending stuff out - [0.987%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================
 

hilalpro

Member
Since you're targeting constant bitrate encoding your sustainable bandwidth is mostly what matters not as much the amount of action/motion happening. the encoder will try to target close to the bitrate you've specified regardless of what's happening.
The added ping that you've noticed is caused by the packet queuing from the game as well as the not so placable video + audio bitrate spikes.
 
Top