remove comment, disable debug
This commit is contained in:
parent
905946da06
commit
1e9abebfd3
1 changed files with 1 additions and 11 deletions
|
|
@ -9,7 +9,7 @@ import Communication from './Communication.js'
|
||||||
if (typeof GAME_ID === 'undefined') throw '[ GAME_ID not set ]'
|
if (typeof GAME_ID === 'undefined') throw '[ GAME_ID not set ]'
|
||||||
if (typeof WS_ADDRESS === 'undefined') throw '[ WS_ADDRESS not set ]'
|
if (typeof WS_ADDRESS === 'undefined') throw '[ WS_ADDRESS not set ]'
|
||||||
|
|
||||||
if (typeof DEBUG === 'undefined') window.DEBUG = true
|
if (typeof DEBUG === 'undefined') window.DEBUG = false
|
||||||
|
|
||||||
function addCanvasToDom(canvas) {
|
function addCanvasToDom(canvas) {
|
||||||
document.body.append(canvas)
|
document.body.append(canvas)
|
||||||
|
|
@ -630,16 +630,6 @@ async function main () {
|
||||||
Communication.sendChanges()
|
Communication.sendChanges()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO:
|
|
||||||
// try out layered rendering and see
|
|
||||||
// if it improves performance:
|
|
||||||
// 1. background
|
|
||||||
// 2. tiles
|
|
||||||
// 3. (moving tiles
|
|
||||||
// 4. (players)
|
|
||||||
// (currently, if a player moves, everthing needs to be
|
|
||||||
// rerendered at that position manually, maybe it is faster
|
|
||||||
// when using layers)
|
|
||||||
const onRender = () => {
|
const onRender = () => {
|
||||||
if (!rerenderTable && !rerenderPlayer && !rerender) {
|
if (!rerenderTable && !rerenderPlayer && !rerender) {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue