csv.TargetFrameRateOverride
csv.TargetFrameRateOverride
#Overview
name: csv.TargetFrameRateOverride
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
If 0, Defaults to calculating the target frame rate using rhi.SyncInterval and Max refresh rate.
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp:104
Scope: file
Source code excerpt:
TAutoConsoleVariable<int32> CVarCsvTargetFrameRateOverride(
TEXT("csv.TargetFrameRateOverride"),
0,
TEXT("If 0, Defaults to calculating the target frame rate using rhi.SyncInterval and Max refresh rate."),
ECVF_Default
);
#if UE_BUILD_SHIPPING
#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/ProfilingDebugging/CsvProfiler.cpp:3035
Scope (from outer to inner):
file
function void FCsvProfiler::BeginFrame
Source code excerpt:
int32 TargetFPS = FPlatformMisc::GetMaxRefreshRate();
static IConsoleVariable* CsvTargetFrameRateCVar = IConsoleManager::Get().FindConsoleVariable(TEXT("csv.TargetFrameRateOverride"));
static IConsoleVariable* MaxFPSCVar = IConsoleManager::Get().FindConsoleVariable(TEXT("t.MaxFPS"));
static IConsoleVariable* SyncIntervalCVar = IConsoleManager::Get().FindConsoleVariable(TEXT("rhi.SyncInterval"));
int32 CmdLineTargetFPS = TargetFPS;
if (CsvTargetFrameRateCVar && CsvTargetFrameRateCVar->GetInt() > 0)
{
TargetFPS = CsvTargetFrameRateCVar->GetInt();
}
else if (FParse::Value(FCommandLine::Get(), TEXT("csv.TargetFrameRateOverride"), CmdLineTargetFPS)) // Too early to set CsvTargetFrameRateCVar with execcmds
{
TargetFPS = CmdLineTargetFPS;
}
else
{
// Figure out the target framerate