MCPcopy Create free account
hub / github.com/android/ndk-samples / DoTick

Method DoTick

native-activity/app/src/main/cpp/main.cpp:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 void DoTick() {
165 if (!running_) {
166 return;
167 }
168
169 // Choreographer does not continuously schedule the callback. We have to re-
170 // register the callback each time we're ticked.
171 ScheduleNextTick();
172 Update();
173 DrawFrame();
174 }
175
176 void Update() {
177 auto now = std::chrono::steady_clock::now();

Callers 1

TickMethod · 0.80

Calls 1

DrawFrameFunction · 0.85

Tested by

no test coverage detected