Render thread proxy that hold's the heuristic for dynamic resolution. 更多...
#include <DynamicResolutionProxy.h>
Public 成员函数 | |
| void | CommitPreviousFrameGPUTimings_RenderThread (uint64 HistoryFrameId, float TotalFrameGPUBusyTimeMs, float DynamicResolutionGPUBusyTimeMs, bool bGPUTimingsHaveCPUBubbles) |
| Commit GPU busy times 更多... | |
| uint64 | CreateNewPreviousFrameTimings_RenderThread (float GameThreadTimeMs, float RenderThreadTimeMs) |
| Create a new previous frame and feeds its timings and returns history's unique id. | |
| FORCEINLINE float | GetResolutionFractionApproximation_GameThread () const |
| Returns a non thread safe approximation of the current resolution fraction applied on render thread. | |
| float | GetResolutionFractionUpperBound () const |
| Returns the view fraction upper bound. | |
| FORCEINLINE float | QueryCurentFrameResolutionFraction_RenderThread () const |
| Returns the view fraction that should be used for current frame. | |
| void | RefreshCurentFrameResolutionFraction_RenderThread () |
| Refresh resolution fraction's from history. | |
| void | Reset_RenderThread () |
| Resets the proxy. | |
静态 Public 成员函数 | |
| static TSharedPtr< class IDynamicResolutionState > | CreateDefaultState () |
| Creates a default dynamic resolution state using this proxy that queries GPU timing from the RHI. | |
Render thread proxy that hold's the heuristic for dynamic resolution.
| void FDynamicResolutionHeuristicProxy::CommitPreviousFrameGPUTimings_RenderThread | ( | uint64 | HistoryFrameId, |
| float | TotalFrameGPUBusyTimeMs, | ||
| float | DynamicResolutionGPUBusyTimeMs, | ||
| bool | bGPUTimingsHaveCPUBubbles | ||
| ) |
Commit GPU busy times
| HistoryFrameId | The history's unique id for the frame returned by CreateNewPreviousFrameTimings_RenderThread() |
| TotalFrameGPUBusyTimeMs | Total GPU busy time for the frame. |
| DynamicResolutionGPUBusyTimeMs | GPU time for sub parts of the frame that does dynamic resolution. |