diff --git a/src/ProfilerUI.hx b/src/ProfilerUI.hx index 65de1aab..b7276790 100644 --- a/src/ProfilerUI.hx +++ b/src/ProfilerUI.hx @@ -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; } } diff --git a/src/touch/CameraInput.hx b/src/touch/CameraInput.hx index 7f1cc033..149bb2b0 100644 --- a/src/touch/CameraInput.hx +++ b/src/touch/CameraInput.hx @@ -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; }