re annouce with exponential back-off

This commit is contained in:
2024-07-14 12:38:00 +02:00
parent bc5599a230
commit 74414d0999
6 changed files with 146 additions and 16 deletions

View File

@@ -75,6 +75,23 @@ namespace Components {
float timer {0.f};
};
struct AnnounceTargets {
entt::dense_set<Contact3> targets;
};
struct ReAnnounceTimer {
float timer {0.f};
float last_max {0.f};
void set(const float new_timer);
// exponential back-off
void reset(void);
// on peer join to group
void lower(void);
};
struct DownloadPriority {
// download/retreival priority in comparison to other objects
// not all backends implement this