Skip to content
 
 

Latest commit

 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This is a modified fork of the original PresentMonFps library maintained for the Lenovo Legion Toolkit project.

NuGet Actions Platform

PresentMonFps

The PresentMon .NET Wrapper for calculating FPS.

Installation

Nugethttps://www.nuget.org/packages/LLT.PresentMonFps

Demo

// Check Available.
if (!FpsInspector.IsAvailable)
{
    Console.WriteLine("This library is only available on Windows.");
    return;
}

// Simple method to get PID.
// Fullname is unnecessary.
uint pid = await FpsInspector.GetProcessIdByNameAsync("YourApp.exe");

// Calculate FPS Once.
FpsResult result = await FpsInspector.StartOnceAsync(new FpsRequest(pid));
Console.WriteLine(result);

// Calculate FPS Forever.
await FpsInspector.StartForeverAsync(new FpsRequest(pid), Console.WriteLine, null!);

See more from PresentMon.SampleWPF and PresentMon.SampleConsole.

Thanks to

Licenses

MIT

About

The PresentMon .NET Wrapper for calculating FPS.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages