GPUOpen-Tools / frame_latency_meter

MIT License
216 stars 3 forks source link

download

frame latency meter

The performance of a gaming system is critical to the overall gaming experience. One of the key factors that can impact the performance of a gaming system is the latency of the mouse response time. Measuring the latency of the mouse response time is important to ensure that the gaming system is performing optimally. However, traditional methods of measuring the latency of the mouse response time can be expensive and require additional hardware.

To address this issue, a software-based latency meter has been developed that is designed to measure the system mouse response times in games. This software-based solution is free and easy to use, making it a highly disruptive alternative to expensive hardware-based solutions.

FLM

Key Features:

The software-based latency meter offers a range of key features that make it an ideal solution for measuring the latency of the mouse response time in games. These features include:

The software-based latency meter offers a range of key features for measuring the latency of the mouse response time in games. By using AMF or DXGI desktop duplication for screen capture, the software-based latency meter is compatible with a wide range of gaming systems. It provides detailed statistics for per frame and latency measurements, which can be exported to a csv file for further analysis. With user-configurable hotkeys and screen capture regions, the software-based latency meter is easy to use and customize. Overall, the software-based latency meter is an ideal solution for users who want to measure the latency of the mouse response time in games without incurring additional costs.

Quick Start

Requirements Windows 10 or higher with DX11 and DX12 support, games should run in windowed mode for DXGI capture codec to work. AMF can run in full screen mode and high frame rates.

Step 1: Configure your primary monitor to run the game on.

Set the monitor to use free sync or have it set to an appropriate refresh rate try starting at 60Hz first.

Step 2: Run flm.exe

To see the capture region bounding box, press right Alt key.
Note: The bounding box will only show if the game is running in window mode.

Adjust the game scene placement so that the FLM capture region is situated in an area.
where the scene transitions from dark to bright when the mouse is moved horizontally.

Step 3: Run the game.

Adjust the game scene placement so that the FLM capture region is situated in an area where the scene transitions from dark to bright when the mouse is moved horizontally.

Step 4: Select start measurements key sequence (default is ALT+T).

Step 5: Select stop measurements and review the output.

Start measurements.
fps = xxx.x | ................ | latency = xxx.x | frames = x.xxx
Stop measurements.

To Build Project Solution Files

Requirements

Run this batch file once for setup in the build folder

A build/win folder containing FLM.sln should have been generated
Open the solution file and build the project files.

Run this batch file to remove build/win and bin folders

Adding your own capture codec

The FLM backend code is designed to add additional capture codecs, look at the capture entry code flm_capture_context and use the samples flm_capture_amf and flm_capture_dxgi as guides to developing your own specialized capture codec.

Known Issues and Limitations

Desktop Capture codec (DXGI) performance

No result shown

Latency results shown are too high