speed up server temporarily

This commit is contained in:
Evert Prants 2022-04-09 18:10:42 +03:00
parent 281f8545f8
commit b79460e8ac
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -1,10 +1,7 @@
import { Server, Socket } from 'socket.io';
import { RequestHandler } from 'express';
import { IcyNetUser } from '../../common/types/user';
import {
CompositePacket,
PositionUpdatePacket,
} from '../../common/types/packet';
import { PositionUpdatePacket } from '../../common/types/packet';
const PLACEHOLDER_USER = (socket: Socket): IcyNetUser => {
const randomName = `player-${socket.id.substring(0, 8)}`;
@ -113,6 +110,6 @@ export class Game {
);
this.io.emit('playerupdate', playerInfo);
this._changedPlayers.length = 0;
}, 100);
}, 10);
}
}