Description

The FRHIFrameFlipTrackingRunnable thread is not initialized on Windows, so RHIGetFrameRate always returns zero.

As a workaround, remove the code added by CalculateFPSTimings for Windows platform, and 5.0 behavior will be restored.
```
#if !PLATFORM_WINDOWS
    if (CVarGTSyncType->GetInt() == 2 && CVarVsync->GetInt() ! = 0).
   

{         FrameTimeMS = RHIGetFrameTime().     }

#``endif
```

Steps to Reproduce
  1. Launch the editor with any project
  2. Start PIE
  3. Open console command box and enter following commands
r.VSync 1
r.GTSyncType 2​
stat fps

Result :

The frame rate display shows 'inf FPS'

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-176105 in the post.

0
Login to Vote

Fixed
ComponentUE - Rendering Architecture - RHI
Affects Versions5.1
Target Fix5.2
Fix Commit24802420
Main Commit24803087
Release Commit24802420
CreatedFeb 6, 2023
ResolvedMar 27, 2023
UpdatedApr 29, 2023
View Jira Issue