mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-19 07:10:58 +00:00
Add network latency to performance overlay
This commit is contained in:
Submodule app/src/main/jni/moonlight-core/moonlight-common-c updated: 5d09d43b08...edf1838708
@@ -134,4 +134,15 @@ Java_com_limelight_nvstream_jni_MoonBridge_stringifyPortFlags(JNIEnv *env, jclas
|
||||
|
||||
(*env)->ReleaseStringUTFChars(env, separator, separatorStr);
|
||||
return (*env)->NewStringUTF(env, outputBuffer);
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_com_limelight_nvstream_jni_MoonBridge_getEstimatedRttInfo(JNIEnv *env, jclass clazz) {
|
||||
uint32_t rtt, variance;
|
||||
|
||||
if (!LiGetEstimatedRttInfo(&rtt, &variance)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return ((uint64_t)rtt << 32U) | variance;
|
||||
}
|
||||
Reference in New Issue
Block a user