[doubt] use macrotasks for processing local server data
this allow to better simulate env flying squid running in, but ideally shouldn't be used imo the main intention here is too wether it can improve fps stability. I don't really think moving flying squid to web worker would significantly improve performance as I see still most of the time is lost in three.js stuff
This commit is contained in:
parent
037a602c4d
commit
6dfd8b366d
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ window.serverDataChannel ??= {}
|
|||
export const customCommunication = {
|
||||
sendData(data) {
|
||||
//@ts-ignore
|
||||
window.serverDataChannel[this.isServer ? 'emitClient' : 'emitServer'](data)
|
||||
setTimeout(() => {
|
||||
window.serverDataChannel[this.isServer ? 'emitClient' : 'emitServer'](data)
|
||||
})
|
||||
},
|
||||
receiverSetup(processData) {
|
||||
//@ts-ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue