Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/FFrameRate
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/FrameRate.h |
| Include | #include "Misc/FrameRate.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/FrameRate.cpp |
bool ComputeGridSpacing
&40;
const float PixelsPerSecond,
double & OutMajorInterval,
int32 & OutMinorDivisions,
float MinTickPx,
float DesiredMajorTickPx
&41; const
Remarks
Compute a desirable grid spacing for the specified screen units True if a valid grid spacing was computed, false otherwise.
Parameters
| Name | Description |
|---|---|
| PixelsPerSecond | The number of pixels representing a second of time |
| OutMajorInterval | (Out) The interval in seconds at which to draw major grid lines |
| OutMinorDivisions | (Out) The number of divisions to draw between major tick lines |
| MinTickPx | (Optional) The smallest size in pixels that is desirable between ticks |
| DesiredMajorTickPx | (Optional) The desired size to compute major tick lines from |