Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPUBusy behaviour on different systems #362

Open
Taxxor90 opened this issue Oct 10, 2024 · 1 comment
Open

CPUBusy behaviour on different systems #362

Taxxor90 opened this issue Oct 10, 2024 · 1 comment

Comments

@Taxxor90
Copy link

Taxxor90 commented Oct 10, 2024

Hi,
since we're implementing the new PM Version in CapFrameX we saw a strange behaviour regarding the CPUBusy metric.

What I'd expect CPUBusy and GPUBusy to show in different scenarios:

CPU Limit at 50FPS with the GPU able to reach 100FPS:
CPUBusy - 20ms
GPUBusy - 10ms

GPU Limit at 50FPS with the CPU able to reach 100FPS:
CPUBusy - 10ms
GPUBusy - 20ms

FPS Limit at 50FPS with both CPU and GPU able to reach 100FPS
CPUBusy - 10ms
GPUBusy - 10ms

If that is how it's supposed to be, we could create an overlay entry showing if the users FPS are limited by
CPU(CPUBusy ~ avg frametime and GPUBusy < CPUBusy)
GPU(GPUBusy ~ avg frametime and CPUBusy < CPUBusy)
FPS limiter(CPUBusy and CPUBusy < avg frametime)

With an Intel and AMD System we saw the behaviour above: ~12.3ms GPUBusy that match the 82FPS and 3.9ms CPUBusy.
Screenshot 2024-10-10 165046

but with my AMD+Nvidia System for example it looks like this in a GPU limit
image

and this with an FPS limit
image2

My CPUBusy times are always just a tiny bit lower but basically the same as my current frame times, regardless of the scenario

The examples above would then look like this on my system

CPU Limit at 50FPS with the GPU able to reach 100FPS:
CPUBusy - 20ms
GPUBusy - 10ms

GPU Limit at 50FPS with the CPU able to reach 100FPS:
CPUBusy - 20ms
GPUBusy - 20ms

FPS Limit at 50FPS with both CPU and GPU able to reach 100FPS
CPUBusy - 20ms
GPUBusy - 10ms

If it's like this, we don't really have anything to gain from the CPUBusy metric, so I don't think it's supposed to be like this.

@AlexUnwinder
Copy link

AlexUnwinder commented Oct 10, 2024

That's because CPUBusy is not what you think it is. That's just a frametime minus time spent inside Present() call. They are expected to be close to frametime unless Present() call is blocking.

#222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants