• src/syncterm/term.c wren_bind.c wren_host.c wren_host_internal.h

    From Deuc╨╡@shurd@sasktel.net to Git commit to main/sbbs/master on Wed May 27 21:34:36 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/69ba956de457fc6dc51c1159
    Modified Files:
    src/syncterm/term.c wren_bind.c wren_host.c wren_host_internal.h
    Log Message:
    Use fast millisecond timer for Wren scheduling

    Use xp_fast_timer64_ms() for the Wren transfer pump throttle and for
    the internal Wren timer queues. These call sites only need millisecond granularity, but they can be reached very frequently from the terminal
    receive path when Wren is active.

    Keep the existing semantic gates in inline_transfer_pump_wren_() before
    the timer read, so inactive Wren sessions and transfer worker paths
    still avoid the scheduling work entirely.

    Store Timer.trigger() and Hook.every() deadlines as millisecond ticks
    instead of long double seconds. This avoids repeated xp_timer() calls in
    the dispatch/sweep path while preserving the existing catch-up behavior
    for stalled recurring timers.