Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ui_lite/frameworks/core/
H A Drender_manager.cpp105 static float alpha = 1.f / SAMPLE_NUMBER; in UpdateFPSByAverageSamplingMethod()
110 alpha = 1.f / SAMPLE_NUMBER; in UpdateFPSByAverageSamplingMethod()
132 static int32_t deltaTimeQueue[SAMPLE_NUMBER] = {0}; in UpdateFPSByPreciseSamplingMethod()
153 if (!isQueueFull && (frameCount == SAMPLE_NUMBER)) { in UpdateFPSByPreciseSamplingMethod()
156 frameCount %= SAMPLE_NUMBER; in UpdateFPSByPreciseSamplingMethod()
161 fps_ = 1.f * SAMPLE_NUMBER / sumDuration * MILLISECONDS_PER_SECOND; in UpdateFPSByPreciseSamplingMethod()
H A Drender_manager.h33 static constexpr int16_t SAMPLE_NUMBER = 100; variable