More accurate FPS measurement

This commit is contained in:
Pazaz 2022-04-27 15:11:28 -04:00
parent 0f5da09916
commit 918177a059
3 changed files with 10 additions and 12 deletions

View file

@ -290,7 +290,7 @@ public final class Static269 {
if (Cheat.displayFps) {
@Pc(405) int local405 = arg1 + arg2 - 8;
@Pc(412) int local412 = arg0 + arg3 - 5;
Fonts.p12Full.renderRight(JagString.concatenate(new JagString[]{Cheat.DEBUG_FPS, Static123.parseInt(GameShell.framesPerSecond)}), local412, local405, 16776960, -1);
Fonts.p12Full.renderRight(JagString.concatenate(new JagString[]{Cheat.DEBUG_FPS, Static123.parseInt((int)GameShell.framesPerSecond)}), local412, local405, 16776960, -1);
@Pc(434) Runtime runtime = Runtime.getRuntime();
@Pc(443) int memory = (int) ((runtime.totalMemory() - runtime.freeMemory()) / 1024L / 1024L);
@Pc(445) int color = 16776960;