Mercurial > code > home > repos > light9
changeset 2323:855f1abf5c66
client side chaos (disabled)
author | drewp@bigasterisk.com |
---|---|
date | Thu, 01 Jun 2023 14:21:35 -0700 |
parents | cdfd2901918a |
children | 4b331ac7784f |
files | light9/web/SyncedGraph.ts |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/SyncedGraph.ts Thu Jun 01 14:21:20 2023 -0700 +++ b/light9/web/SyncedGraph.ts Thu Jun 01 14:21:35 2023 -0700 @@ -158,10 +158,13 @@ } if (!patch.isEmpty()) { this._applyPatch(patch); + // // chaos delay + // setTimeout(()=>{ if (this.client) { log("sending patch:\n", patch.dump()); this.client.sendPatch(patch); } + // },300*Math.random()) } console.timeEnd("applyAndSendPatch"); }