speed up server temporarily
This commit is contained in:
parent
281f8545f8
commit
b79460e8ac
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user