File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/android/app/src/main/jni/vr Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,8 @@ class VRApp {
228
228
// Doesn't actually matter, except to make the indices
229
229
// consistent in traces
230
230
mFrameIndex ++;
231
+
232
+ // Log time to first frame
231
233
if (mFrameIndex == 1 ) {
232
234
std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now ();
233
235
ALOGI (" Time to first frame: %lld ms" ,
@@ -801,7 +803,10 @@ struct VRAppHandle {
801
803
802
804
extern " C" JNIEXPORT jlong JNICALL
803
805
Java_org_citra_citra_1emu_vr_VrActivity_nativeOnCreate (JNIEnv* env, jobject thiz) {
806
+ // Log the creat start time, which will be used to calculate the total
807
+ // time to first frame.
804
808
gOnCreateStartTime = std::chrono::steady_clock::now ();
809
+
805
810
JavaVM* jvm;
806
811
env->GetJavaVM (&jvm);
807
812
return VRAppHandle (new VRApp (jvm, env->NewGlobalRef (thiz))).l ;
You can’t perform that action at this time.
0 commit comments