mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Add specific CPU detection for the emulator
This commit is contained in:
parent
8ec8fff57c
commit
4258ac752e
@ -7,6 +7,7 @@ import java.io.IOException;
|
|||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
|
||||||
import android.graphics.PixelFormat;
|
import android.graphics.PixelFormat;
|
||||||
|
import android.os.Build;
|
||||||
import android.view.SurfaceHolder;
|
import android.view.SurfaceHolder;
|
||||||
|
|
||||||
import com.limelight.LimeLog;
|
import com.limelight.LimeLog;
|
||||||
@ -53,8 +54,12 @@ public class AndroidCpuDecoderRenderer implements VideoDecoderRenderer {
|
|||||||
|
|
||||||
// We order them from greatest to least for proper detection
|
// We order them from greatest to least for proper detection
|
||||||
// of devices with multiple sets of cores (like Exynos 5 Octa)
|
// of devices with multiple sets of cores (like Exynos 5 Octa)
|
||||||
// TODO Make this better
|
// TODO Make this better (only even kind of works on ARM)
|
||||||
if (cpuInfoStr.contains("0xc0f")) {
|
if (Build.FINGERPRINT.contains("generic")) {
|
||||||
|
// Emulator
|
||||||
|
return LOW_PERF;
|
||||||
|
}
|
||||||
|
else if (cpuInfoStr.contains("0xc0f")) {
|
||||||
// Cortex-A15
|
// Cortex-A15
|
||||||
return MED_PERF;
|
return MED_PERF;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user