new chunk picker, basically working

still needs work on the sending side and more bug fixes
This commit is contained in:
2024-07-03 12:11:20 +02:00
parent 613b183592
commit d19fc6ba30
4 changed files with 210 additions and 108 deletions

View File

@@ -41,6 +41,11 @@ struct ChunkPicker {
entt::dense_set<Object> participating;
Object participating_in_last {entt::null};
void updateParticipation(
Contact3Handle c,
ObjectRegistry& objreg
);
// tick
//void sendInfoRequests();
// is this like a system?
@@ -54,7 +59,7 @@ struct ChunkPicker {
size_t chunk_index;
};
// returns list of chunks to request
std::vector<ContentChunkR> updateChunkRequests(
[[nodiscard]] std::vector<ContentChunkR> updateChunkRequests(
Contact3Handle c,
ObjectRegistry& objreg,
ReceivingTransfers& rt