mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 19:58:56 +00:00
Updated comments.
This commit is contained in:
parent
1694287083
commit
8d2665ebd7
@ -144,6 +144,7 @@ window.initPersistentSessionClient = function(onopenCb, expectedRoomId) {
|
|||||||
if (null == evt || null == evt.data) {
|
if (null == evt || null == evt.data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// FIXME: In practice, it seems like the thread invoking "onmessage" could be different from "Map.update(dt)", which makes it necessary to guard "recentRenderCache & recentInputCache" for "_generateInputFrameUpsync & rollbackAndChase & onRoomDownsyncFrame & onInputFrameDownsyncBatch" to avoid mysterious RAM contamination, but there's no explicit mutex in JavaScript for browsers.
|
||||||
try {
|
try {
|
||||||
const resp = window.pb.protos.WsResp.decode(new Uint8Array(evt.data));
|
const resp = window.pb.protos.WsResp.decode(new Uint8Array(evt.data));
|
||||||
//console.log(`Got non-empty onmessage decoded: resp.act=${resp.act}`);
|
//console.log(`Got non-empty onmessage decoded: resp.act=${resp.act}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user