[Mod installer] Try to attach JNI thread anyways

This commit is contained in:
khanhduytran0
2020-11-05 18:03:39 +07:00
parent 189793020c
commit 58bb44f89a
3 changed files with 8 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ public class AWTCanvasView extends TextureView implements TextureView.SurfaceTex
if (attached) {
drawing = JREUtils.renderAWTScreenFrame(canvas, mWidth, mHeight);
}
canvas.drawText("FPS: " + fps() + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint);
canvas.drawText("FPS: " + (Math.round(fps() * 10) / 10) + ", attached=" + attached + ", drawing=" + drawing, 50, 50, fpsPaint);
mSurface.unlockCanvasAndPost(canvas);
} catch (Throwable th) {