Site icon SpawnTerror

ETW Tracing: Troubleshooting Frame Rate Issues

PerfView Microsoft Counter Strike 2 Optimisation Tool

PerfView Microsoft Counter Strike 2 Optimisation Tool

What Is It

PerfView is a free performance analysis tool designed to pinpoint CPU and memory-related issues. While primarily a Windows tool, it also supports analyzing data from Linux systems. It’s versatile across many scenarios and offers specialized features for troubleshooting .NET runtime performance. For Counter-Strike 2 (CS2) players, PerfView can be an effective tool for optimizing gameplay or gathering detailed diagnostics to share with the CS2 development team for further feedback.

When You Shouldn’t Use PerfView

Special thanks to @ZPostFacto for sharing the tutorial on how to use PerfView specifically for diagnosing performance issues in Counter-Strike 2 (CS2)! He says:

An ETW trace is usually NOT the right tool for investigating problems such as:

  • My average FPS is slower than it used to be.
  • Most of the time my FPS is 500, but sometimes it drops to 450.
  • I am getting packet loss.
Fletcher Dunn,

For more posts from our wonderful Fletcher, please see his X account below.

Tutorial On How To Use PerfView To Collect Information Causing Stutters

Important. If you take the time to capture a trace according to the instructions below, it’s usually possible to identify the cause of the hitch. If you skip any steps, it is not worth the effort. Please read the instructions carefully and use them. Fletcher adds that:

We usually DON’T need to know your system specs, or that you have an awesome computer, or a super fast Internet connection, or that the problem is only with our game, etc.  Save yourself the time and include ALL of the information above, but ONLY the information above.

Fletcher Dunn

Step 1: Shutdown All The Undeeded Apps

Very often the problem we find is caused by other software running on the user’s computer or a customization the user has made.  Before sending us a trace, run the game in the “plainest” way possible.

Very often, the above steps lead to a solution.  Even if not, they can be a useful diagnostic step.  Do not skip them!

Everybody makes mistakes, but if we see evidence that you haven’t taken these basic steps to rule out external causes, we will assume that investigating your trace will not be a good use of our time, and we won’t look at it.

Counter-strike players: Turn on the in-game telemetry HUD and observe the max frame time in ms.  What does it usually read when gameplay is smooth?  What does it spike up to when there is a hitch?  Please include this information in your report.

Step 2: Important Privacy Notice

While you are recording, the tool may be capturing keystrokes, full pathnames of files that are accessed, DNS lookups, etc, across your whole system, not just the game.  It may be possible to tell what websites you visit while recording.  (But please close all browsers, anyway.)  We really, honestly do not care what websites you visit, and it’s unlikely we will have the time or interest to seek out data of that nature.  But we might stumble across it accidentally.  For our sake and yours, please act as if somebody is looking over your shoulder while recording the trace.

Step 3: How To Capture An ETW Trace

Download PerfView

https://github.com/Microsoft/perfview#perfview-overview

https://github.com/Microsoft/perfview/releases

Exit mobile version