debug styling
parent
c44b321951
commit
1c926a8af4
|
|
@ -44,11 +44,11 @@ public class HadeanGame extends Game {
|
||||||
|
|
||||||
long allocated = runtime.totalMemory();
|
long allocated = runtime.totalMemory();
|
||||||
long max = runtime.maxMemory();
|
long max = runtime.maxMemory();
|
||||||
int left = 780;
|
int left = 770;
|
||||||
int top = 10;
|
int top = 10;
|
||||||
|
|
||||||
List<String> strings = new ArrayList<String>();
|
List<String> strings = new ArrayList<String>();
|
||||||
strings.add("=== [ DEBUG ] ===");
|
strings.add(" === [ DEBUG ] ===");
|
||||||
strings.add("FPS: " + Math.round(averageFPS) + "/" + measuredFPS + " | AVG/MEASURED");
|
strings.add("FPS: " + Math.round(averageFPS) + "/" + measuredFPS + " | AVG/MEASURED");
|
||||||
strings.add("Mouse: <" + App.mouseX + ", " + App.mouseY + ">");
|
strings.add("Mouse: <" + App.mouseX + ", " + App.mouseY + ">");
|
||||||
strings.add("MEMORY: " + (int)((allocated / (double)max) * 100) + "% (" + (allocated / (1024 * 1024)) + "/" + (max / (1024 * 1024)) + "MB)");
|
strings.add("MEMORY: " + (int)((allocated / (double)max) * 100) + "% (" + (allocated / (1024 * 1024)) + "/" + (max / (1024 * 1024)) + "MB)");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue