Home
last modified time | relevance | path

Searched refs:averageFrameTime (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/gamesdk/src/swappy/
DSwappy.cpp551 void Swappy::swapSlower(const FrameDuration& averageFrameTime, in swapSlower() argument
557 if (!mPipelineMode && averageFrameTime.getTime(true) <= upperBound) { in swapSlower()
567 if (mPipelineModeAutoMode && averageFrameTime.getTime(false) < newBound) { in swapSlower()
577 void Swappy::swapFaster(const FrameDuration& averageFrameTime, in swapFaster() argument
588 if (!mPipelineModeAutoMode || averageFrameTime.getTime(false) > newBound) { in swapFaster()
605 const auto averageFrameTime = mFrameDurationsSum / mFrameDurations.size(); in updateSwapInterval() local
618 auto div_result = ::div((averageFrameTime.getTime(true) + FRAME_HYSTERESIS).count(), in updateSwapInterval()
626 ALOGV("Average cpu frame time = %.2f", (averageFrameTime.getCpuTime().count()) / 1e6f); in updateSwapInterval()
627 ALOGV("Average gpu frame time = %.2f", (averageFrameTime.getGpuTime().count()) / 1e6f); in updateSwapInterval()
632 if (averageFrameTime.getTime(mPipelineMode) > upperBound) { in updateSwapInterval()
[all …]
DSwappy.h180 void swapFaster(const FrameDuration& averageFrameTime,
185 void swapSlower(const FrameDuration& averageFrameTime,