We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493e331 commit c91142cCopy full SHA for c91142c
FCL/src/main/java/com/tungsten/fcl/control/GameMenu.java
@@ -446,9 +446,10 @@ private void initRightMenu() {
446
Schedulers.io().execute(() -> {
447
FCLBridge.getFps();
448
while (showFps.isChecked()) {
449
- if (System.currentTimeMillis() - time >= 1000) {
450
- Schedulers.androidUIThread().execute(() -> fpsText.setText("FPS:" + FCLBridge.getFps()));
451
- time = System.currentTimeMillis();
+ Schedulers.androidUIThread().execute(() -> fpsText.setText("FPS:" + FCLBridge.getFps()));
+ try {
+ Thread.sleep(1000);
452
+ } catch (InterruptedException ignored) {
453
}
454
455
});
0 commit comments