Frame rate checker and limit warning.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
d0de09456a
commit
b47804c51a
BIN
ffxivai.jar
BIN
ffxivai.jar
Binary file not shown.
@ -7,7 +7,7 @@ import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
|
||||
public class FFXIV{
|
||||
public long FRAMETIME=0;
|
||||
public static double FRAMETIME=0;
|
||||
public static Robot r;
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
@ -23,7 +23,11 @@ public class FFXIV{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
System.out.println("60 captures took "+((double)((int)(System.nanoTime()-startTime)/10000000)/100)+"s");
|
||||
FRAMETIME = ((double)((long)(System.nanoTime()-startTime)/10000000)/100);
|
||||
System.out.println("60 captures took "+FRAMETIME+"s. FPS:"+Math.floor(60/FRAMETIME));
|
||||
if (60/FRAMETIME<10) {
|
||||
System.out.println(" WARNING!! For best performance, it's highly recommended to use this on a computer that can compute at least 10 frames per second!");
|
||||
}
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
private static BufferedImage CaptureScreen() throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user