performance - React Native "dropped so far" perf monitor count constantly increases -
i noticed issue in completed app, have installed default react-native app test, , i'm seeing "dropped far" number in perf monitor creep though nothing happening.
is number supposed increase constantly?
yes, though it's not constant.
(i'm making assumption mean constant in same value, although if mean never stops, can ignore explanation behind how works.)
to understand logic of dropped far
, can @ react native codebase. find code perf monitor in fpsview.java file. in it, can see variable (droppeduiframes
) being used dropped far
code (line 67). if follow way back, fpsmonitorrunnable
class uses mtotalframesdropped
variable keep track of frames dropped far (line 79). in class, have loop updating variables being reported. line you'll interested in 1 on line 90:
mtotalframesdropped += mframecallback.getexpectednumframes() - mframecallback.getnumframes();
from this, can see yes, value counter increases never gets reset while perf monitor running. can see isn't constant (fixed value); in case, happens appear constant because on "hello world" screen nothing interesting happening.
Comments
Post a Comment