MissPotato
Member
For me, the average game networking is in the top 3 longest tasks for frame pacing. This is made worse by general CPU thread starvation, as I have a pretty weak cpu. However, given others are also reporting this issue something might be really hammering the network thread.
From discord user MajorZero:
Excessive frame time of 121.82ms clamped. Acting as if the frame only took 100.00ms
115.60ms Networking
3.90ms Client Rendering
1.79ms Frame Boundary
0.83ms Client Simulation
0.74ms Unaccounted
0.68ms ClientSimulationTick
From discord user Ly:
Excessive frame time of 132.83ms clamped. Acting as if the frame only took 100.00ms
127.01ms Networking
3.02ms Client Rendering
1.76ms Frame Boundary
1.17ms Client Simulation
0.94ms ClientSimulateTick
0.75ms PanoramaUI
The follow warning is in console quite frequently. Implying the issue is made worse by cpu thread starvation.
[SteamNetSockets] SteamNetworkingSockets lock held for 7.0ms. (Performance warning.) ServiceThread,RecvUDPPacket
This is usually a symptom of a general performance problem such as thread starvation.
Below is also the vprof of my last game.
VProf] -- Performance report --
[VProf] Summary of 74462 frames. (8629 frames excluded from analysis.)
[VProf] FPS: Avg=48.6, P1=29.2
[VProf]
[VProf] All frames Active frames
[VProf] Avg P99 N Avg P99
[VProf] ---------------------------------------------------- ------ ------ ------ ------ ------
[VProf] FrameTotal 20.58 34.29 74462 20.58 34.29
[VProf] Client Rendering 8.08 15.40 74462 8.08 15.40
[VProf] Frame Boundary 4.80 11.15 74462 4.80 11.15
[VProf] Networking 3.33 11.60 74462 3.33 11.60
[VProf] Client Simulation 2.88 5.38 74462 2.88 5.38
[VProf] ClientSimulateTick 2.24 4.09 74447 2.24 4.09
[VProf] Prediction 2.07 7.52 74462 2.07 7.52
[VProf] PanoramaUI 1.80 4.45 74462 1.80 4.45
[VProf] Client Input/Output 1.78 11.42 74462 1.78 11.42
[VProf] Unaccounted 1.72 5.66 74462 1.72 5.66
[VProf] Interpolation 1.03 2.29 74462 1.03 2.29
[VProf] Client_Animation 0.77 1.52 74447 0.77 1.52
[VProf] ClientSimulateFrame 0.64 1.05 74462 0.64 1.05
[VProf] SDL 0.62 3.39 74462 0.62 3.39
[VProf] Sleeping 0.59 4.80 22260 1.98 5.49
[VProf] Client Physics 0.45 1.43 74462 0.45 1.43
[VProf] LatchAndSaveLastSimulationValuesForInterpolationList 0.31 0.82 74447 0.31 0.82
[VProf] EventFrameBoundary_t 0.28 1.54 74462 0.28 1.54
[VProf] Present_RenderDevice 0.22 1.12 74462 0.22 1.12
[VProf] ClientSimulate_Think 0.22 0.43 74447 0.22 0.43
[VProf] InterpolatedVar_NoteChanged 0.14 0.29 73897 0.14 0.29
[VProf] GraphicsMisc 0.13 0.43 74462 0.13 0.43
[VProf] CalcAnimationState 0.11 0.25 74462 0.11 0.25
[VProf] Particle Simulation 0.09 0.68 42973 0.15 0.89
[VProf] SoundOperators 0.01 0.00 173 3.22 12.73
[VProf] FileSystem 0.01 0.00 183 3.00 5.86
From discord user MajorZero:
Excessive frame time of 121.82ms clamped. Acting as if the frame only took 100.00ms
115.60ms Networking
3.90ms Client Rendering
1.79ms Frame Boundary
0.83ms Client Simulation
0.74ms Unaccounted
0.68ms ClientSimulationTick
From discord user Ly:
Excessive frame time of 132.83ms clamped. Acting as if the frame only took 100.00ms
127.01ms Networking
3.02ms Client Rendering
1.76ms Frame Boundary
1.17ms Client Simulation
0.94ms ClientSimulateTick
0.75ms PanoramaUI
The follow warning is in console quite frequently. Implying the issue is made worse by cpu thread starvation.
[SteamNetSockets] SteamNetworkingSockets lock held for 7.0ms. (Performance warning.) ServiceThread,RecvUDPPacket
This is usually a symptom of a general performance problem such as thread starvation.
Below is also the vprof of my last game.
VProf] -- Performance report --
[VProf] Summary of 74462 frames. (8629 frames excluded from analysis.)
[VProf] FPS: Avg=48.6, P1=29.2
[VProf]
[VProf] All frames Active frames
[VProf] Avg P99 N Avg P99
[VProf] ---------------------------------------------------- ------ ------ ------ ------ ------
[VProf] FrameTotal 20.58 34.29 74462 20.58 34.29
[VProf] Client Rendering 8.08 15.40 74462 8.08 15.40
[VProf] Frame Boundary 4.80 11.15 74462 4.80 11.15
[VProf] Networking 3.33 11.60 74462 3.33 11.60
[VProf] Client Simulation 2.88 5.38 74462 2.88 5.38
[VProf] ClientSimulateTick 2.24 4.09 74447 2.24 4.09
[VProf] Prediction 2.07 7.52 74462 2.07 7.52
[VProf] PanoramaUI 1.80 4.45 74462 1.80 4.45
[VProf] Client Input/Output 1.78 11.42 74462 1.78 11.42
[VProf] Unaccounted 1.72 5.66 74462 1.72 5.66
[VProf] Interpolation 1.03 2.29 74462 1.03 2.29
[VProf] Client_Animation 0.77 1.52 74447 0.77 1.52
[VProf] ClientSimulateFrame 0.64 1.05 74462 0.64 1.05
[VProf] SDL 0.62 3.39 74462 0.62 3.39
[VProf] Sleeping 0.59 4.80 22260 1.98 5.49
[VProf] Client Physics 0.45 1.43 74462 0.45 1.43
[VProf] LatchAndSaveLastSimulationValuesForInterpolationList 0.31 0.82 74447 0.31 0.82
[VProf] EventFrameBoundary_t 0.28 1.54 74462 0.28 1.54
[VProf] Present_RenderDevice 0.22 1.12 74462 0.22 1.12
[VProf] ClientSimulate_Think 0.22 0.43 74447 0.22 0.43
[VProf] InterpolatedVar_NoteChanged 0.14 0.29 73897 0.14 0.29
[VProf] GraphicsMisc 0.13 0.43 74462 0.13 0.43
[VProf] CalcAnimationState 0.11 0.25 74462 0.11 0.25
[VProf] Particle Simulation 0.09 0.68 42973 0.15 0.89
[VProf] SoundOperators 0.01 0.00 173 3.22 12.73
[VProf] FileSystem 0.01 0.00 183 3.00 5.86