ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
651 stars 76 forks source link

[TF2] Concheror passive healing ticks make game stutter #6515

Open mikixxx81 opened 1 week ago

mikixxx81 commented 1 week ago

Having concheror equipped and health less than full, induces a stutter that is triggered by passive healing ticks.

I am playing on a 120HZ GSync monitor with vsync on and fps capped to 117 in NVidia control panel. Recently i noticed that concheror is responsible for consistent stutter as long as the health is <100%. After some digging i found that concheror ticks belong to chealthaccountpanel. I've tried to disable it from HudLayout.res by setting "visible" and "enabled" for chealthaccountpanel to 0, but the game seems to ignore that. Then I tried to disable drawing of ticks in hudhealthaccount.res , thinking it might help ("delta_lifetime" "0" or by setting color alpha to 0, or by making the "delta_item_x" and y to 9999 so the frame would be outside of monitor box). That made the ticks not render but the stutter stayed.

You can see the stutter on NetGraph here. Notice how it stops once the health is back to full.

Clipboard Image

Bradasparky commented 1 week ago

Those ticks themselves don't necessarily represent stutter, they are a visual representation of how many events were fired on that tick. In this case, two events are being fired. player_healonhit and player_healed. Look at the legend to the left of the graph. events is light blue, which matches the color and vertical position of the colored ticks relative to entities which is in red and below events. No amount of hud edits will prevent healing events from being fired. Can you record your game stuttering when you regenerate health to confirm that it's actually having a negative impact?

mikixxx81 commented 1 week ago

Hello, thank you for your quick response!

I am linking the recording below but when watching the video be aware that stutter is less pronounced in video than while playing the game. Spots where stutter is most visible are high contrast areas such as where ripped off planks are, circled below.

Untitled-1

https://wetransfer.com/downloads/69a56283bebe33aa7e556770558c087f20241111215254/feadc95de4fdffb4cf62e29a9452314b20241111215338/7e767c?t_exp=1731621174&t_lsid=82792d4a-6b28-44b1-a33f-1729b7aadb89&t_network=email&t_s=download_link&t_ts=1731362018&utm_campaign=TRN_TDL_01&utm_source=sendgrid&utm_medium=email&trk=TRN_TDL_01