Krita Source Code Documentation
Loading...
Searching...
No Matches
FrameMeasure Struct Reference

Struct used to keep track of all frame time variance and accommodate for skipped frames. Also tracks whether a frame is still being loaded by the display proxy. More...

Public Member Functions

 FrameMeasure ()
 
void reset ()
 

Public Attributes

KisRollingMeanAccumulatorWrapper averageTimePerFrame
 
KisRollingSumAccumulatorWrapper droppedFramesStat
 
QElapsedTimer timeSinceLastFrame
 
bool waitingForFrame
 

Static Public Attributes

static constexpr int frameStatsWindow = 50
 

Detailed Description

Struct used to keep track of all frame time variance and accommodate for skipped frames. Also tracks whether a frame is still being loaded by the display proxy.

Only allocated when playback begins.

Definition at line 125 of file KisPlaybackEngineQT.cpp.

Constructor & Destructor Documentation

◆ FrameMeasure()

FrameMeasure::FrameMeasure ( )
inline

Definition at line 128 of file KisPlaybackEngineQT.cpp.

130 , waitingForFrame(false)
132
133 {
134 timeSinceLastFrame.start();
135 }
KisRollingMeanAccumulatorWrapper averageTimePerFrame
QElapsedTimer timeSinceLastFrame
KisRollingSumAccumulatorWrapper droppedFramesStat
static constexpr int frameStatsWindow

Member Function Documentation

◆ reset()

void FrameMeasure::reset ( )
inline

Member Data Documentation

◆ averageTimePerFrame

KisRollingMeanAccumulatorWrapper FrameMeasure::averageTimePerFrame

Definition at line 145 of file KisPlaybackEngineQT.cpp.

◆ droppedFramesStat

KisRollingSumAccumulatorWrapper FrameMeasure::droppedFramesStat

Definition at line 148 of file KisPlaybackEngineQT.cpp.

◆ frameStatsWindow

constexpr int FrameMeasure::frameStatsWindow = 50
staticconstexpr

Definition at line 126 of file KisPlaybackEngineQT.cpp.

◆ timeSinceLastFrame

QElapsedTimer FrameMeasure::timeSinceLastFrame

Definition at line 144 of file KisPlaybackEngineQT.cpp.

◆ waitingForFrame

bool FrameMeasure::waitingForFrame

Definition at line 146 of file KisPlaybackEngineQT.cpp.


The documentation for this struct was generated from the following file: