i hate everything

This commit is contained in:
Djeeberjr 2022-03-01 13:20:23 +01:00
parent ecf4f9c719
commit bbdbef889a
2 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,7 @@ BUNDLE_NAME = bundle.lua
HAXE_NAME = haxe.lua HAXE_NAME = haxe.lua
MINIFYD_NAME = bundle.min.lua MINIFYD_NAME = bundle.min.lua
BUILD_DIR = build BUILD_DIR = build
HAXE_FLAGS = -D webconsole --debug HAXE_FLAGS =
POLYFILLED_NAME = bundle.polyfill.lua POLYFILLED_NAME = bundle.polyfill.lua
POLYFILL_SRC = src/polyfill.lua POLYFILL_SRC = src/polyfill.lua

View File

@ -74,11 +74,7 @@ class Routing {
data: null data: null
} }
// HACK: Because Lua is singelthreaded the computer we respond to can get overwhelmed with
// the responses and can swollow events.
new Timer(Net.instance.networkID / 3,()->{
interf.send(response.toID,Net.instance.networkID,response); interf.send(response.toID,Net.instance.networkID,response);
});
} }
private function genRouteList(): Array<{id:NetworkID,cost:Int}> { private function genRouteList(): Array<{id:NetworkID,cost:Int}> {