HotFix performance

- Change forceSetTimeOut to false and permit to freeze the scene.
 - Fix style sending audio message
 - Fix banned message from admin console
This commit is contained in:
Gregoire Parant 2021-04-19 20:19:40 +02:00
parent a43afbc124
commit e7b5bb261d
4 changed files with 5 additions and 3 deletions

View File

@ -795,7 +795,7 @@ input[type=range]:focus::-ms-fill-upper {
right: 0;
}
.main-container .audio-playing img{
width: 30px;
/*width: 30px;*/
border-radius: 50%;
background-color: #ffda01;
padding: 10px;
@ -803,6 +803,7 @@ input[type=range]:focus::-ms-fill-upper {
.main-container .audio-playing p{
color: white;
margin-left: 10px;
margin-top: 14px;
}
/* VIDEO QUALITY */

View File

@ -5,6 +5,7 @@ export enum AdminMessageEventTypes {
admin = 'message',
audio = 'audio',
ban = 'ban',
banned = 'banned',
}
interface AdminMessageEvent {

View File

@ -184,7 +184,7 @@ export class RoomConnection implements RoomConnection {
} else if (message.hasSendusermessage()) {
adminMessagesService.onSendusermessage(message.getSendusermessage() as SendUserMessage);
} else if (message.hasBanusermessage()) {
adminMessagesService.onSendusermessage(message.getSendusermessage() as BanUserMessage);
adminMessagesService.onSendusermessage(message.getBanusermessage() as BanUserMessage);
} else if (message.hasWorldfullwarningmessage()) {
worldFullWarningStream.onMessage();
} else if (message.hasRefreshroommessage()) {

View File

@ -33,7 +33,7 @@ const fps : Phaser.Types.Core.FPSConfig = {
/**
* Use setTimeout instead of requestAnimationFrame to run the game loop.
*/
forceSetTimeOut: true,
forceSetTimeOut: false,
/**
* Calculate the average frame delta from this many consecutive frame intervals.
*/