remove debug stuff

This commit is contained in:
RandomityGuy 2022-08-15 00:20:48 +05:30
parent b8df31324b
commit 947aee6937
2 changed files with 9 additions and 17 deletions

View file

@ -15,27 +15,27 @@ class ProfilerUI {
return;
instance = this;
debugProfiler = new h3d.impl.Benchmark(s2d);
debugProfiler.y = 40;
// debugProfiler = new h3d.impl.Benchmark(s2d);
// debugProfiler.y = 40;
fpsCounter = new Text(DefaultFont.get(), s2d);
fpsCounter.y = 80;
fpsCounter.color = new Vector(1, 1, 1, 1);
// fpsCounter = new Text(DefaultFont.get(), s2d);
// fpsCounter.y = 80;
// fpsCounter.color = new Vector(1, 1, 1, 1);
}
public static function begin() {
instance.debugProfiler.begin();
// instance.debugProfiler.begin();
}
public static function measure(name:String) {
instance.debugProfiler.measure(name);
// instance.debugProfiler.measure(name);
}
public static function end() {
instance.debugProfiler.end();
// instance.debugProfiler.end();
}
public static function update(fps:Float) {
instance.fpsCounter.text = "FPS: " + fps;
// instance.fpsCounter.text = "FPS: " + fps;
}
}

View file

@ -18,8 +18,6 @@ class CameraInput {
var collider:GuiGraphics;
var txt:Text;
public function new() {
var width = MarbleGame.canvas.scene2d.width;
var height = MarbleGame.canvas.scene2d.height;
@ -40,9 +38,6 @@ class CameraInput {
var pressed = false;
var prevMouse = new Vector(0, 0);
txt = new Text(DefaultFont.get());
interactive.onPush = (e) -> {
e.propagate = true;
@ -72,8 +67,6 @@ class CameraInput {
return;
if (pressed) {
txt.text = 'Camera Touch: ${e.relX} ${e.relY}';
var curPos = new Vector(e.relX, e.relY);
var delta = curPos.sub(prevMouse);
var scaleFactor = 1.0;
@ -148,7 +141,6 @@ class CameraInput {
public function add(parentGui:GuiControl) {
parentGui.addChild(this.collider);
MarbleGame.canvas.scene2d.addChild(txt);
added = true;
}