mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-18 03:25:17 +00:00
* Track frametimes * impl rest of frametime graph, missing resize to not go over middle of screen when small * only show fps graph with alt+f3 like in modern * Add integrated server TPS reporting --------- Co-authored-by: kurrycat <[email protected]>
15 lines
430 B
Java
15 lines
430 B
Java
package com.gtnewhorizons.angelica.debug;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class FrametimeGraph extends F3Graph {
|
|
public FrametimeGraph() {
|
|
// At 1x scale, 30 FPS should be 60 px. 30 FPS = 33_333_333ns per frame, 60px/33_333_333ns = 0.0000018f px/ns
|
|
super(
|
|
new ResourceLocation("angelica:textures/frametimes_fg.png"),
|
|
0.0000018f,
|
|
true
|
|
);
|
|
}
|
|
}
|