Skip to content

Rate-limit RESYNCING HARD log spam to at most once per second#234

Draft
W-Floyd wants to merge 1 commit into
CarlosDerSeher:developfrom
W-Floyd:fix/resync-perf
Draft

Rate-limit RESYNCING HARD log spam to at most once per second#234
W-Floyd wants to merge 1 commit into
CarlosDerSeher:developfrom
W-Floyd:fix/resync-perf

Conversation

@W-Floyd

@W-Floyd W-Floyd commented Jun 8, 2026

Copy link
Copy Markdown

Thoughts on rate limiting resync logs? I've been having issues with resync "storms", where once I player falls out of sync it really struggles to come back into sync. Trying this out, I seem to have more success, but still iffy. Possibly related to #226?

Overall it'd be nice to be able to turn off entirely instead, tracked in AchimPieters/esp32-udp-logger#9 already.


Flooding resync logs competed with audio Wi-Fi traffic and called esp_wifi_sta_get_ap_info + heap_caps queries on every resync iteration. Both RESYNCING HARD 1 and 2 now share a single timestamp gate; the expensive diagnostics only run when the log actually fires.

Flooding resync logs competed with audio Wi-Fi traffic and called
esp_wifi_sta_get_ap_info + heap_caps queries on every resync iteration.
Both RESYNCING HARD 1 and 2 now share a single timestamp gate; the
expensive diagnostics only run when the log actually fires.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CarlosDerSeher

Copy link
Copy Markdown
Owner

Do you have those problems when using udp Logger?

@W-Floyd

W-Floyd commented Jun 8, 2026

Copy link
Copy Markdown
Author

"using" meaning having a client connected to consume logs? It seemed the same either way.

Much like in #232 I seem to be having better success since tuning other parameters. I've also disabled udp logging in my builds entirely right now, so I'll need to revisit this. Can probably close though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants