ludic.shop, ludic.net: nothing made per tick - the week's lists and dice reused, the net's facts from a ring, the room's watch address made once, pools and kept lists through kept_push; what runs once per host, join, room or guest says so in @alloc_ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f5834f8f63
commit
4b533b5ff6
18 changed files with 86 additions and 23 deletions
|
|
@ -12,6 +12,7 @@ function net__pump(net_st: mut NetState) -> void {
|
|||
}
|
||||
|
||||
function net__packet(net_st: mut NetState, n: int, ip: int, port: int) -> void {
|
||||
@alloc_ok("only while tracing every packet")
|
||||
if NetWorld.trace() { net__log(`in {n} bytes from {Udp.ip_text(ip)}:{port}`) }
|
||||
if n < 20 { return }
|
||||
if net__stun_packet(net_st, n) { return } # what the router looks like from outside
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue