refactor sending transfers

always do timeouts and resending first
then roundrobin over sending new data
This commit is contained in:
Green Sky
2025-12-13 16:54:37 +01:00
parent b7046bcb47
commit 3d4e286a7c
3 changed files with 150 additions and 150 deletions

View File

@@ -26,7 +26,6 @@ struct SendSequenceBuffer {
template<typename FN>
void for_each(float time_delta, FN&& fn) {
for (auto& [id, entry] : entries) {
entry.time_since_activity += time_delta;
fn(id, entry.data, entry.time_since_activity);
}
}