material debug: fps :((

This commit is contained in:
2023-07-11 21:37:35 +02:00
parent 8279b1188f
commit 69b2b77fe9
5 changed files with 133 additions and 21 deletions

3
app.js
View File

@@ -43,7 +43,6 @@ let game = {
renderer.domElement.tabIndex = 1
gui.domElement.tabIndex = 1
gui.domElement.onfocus = game.pause
nextQueue.init()
@@ -55,7 +54,7 @@ let game = {
document.onkeydown = onkeydown
document.onkeyup = onkeyup
window.onblur = game.pause
gui.domElement.onfocus = game.pause
if (!gui.debug) gui.domElement.onfocus = game.pause
document.body.classList.remove("pause")
gui.resumeButton.hide()