Update TODO after re-reading code and seeing that it was slightly inaccurate

This commit is contained in:
Imbris 2023-06-04 12:54:23 -04:00
parent b96e7e1b26
commit b72bf74563

View File

@ -311,8 +311,11 @@ impl<'a> System<'a> for Sys {
}
}
// TODO: force update counter only needs to be sent with updates specifically
// for a client's own entity. We can save bandwidth here.
// TODO: force update counter only needs to be sent once per frame (and only if
// it changed, although it might not be worth having a separate message for
// optionally sending it since individual messages may have a bandwidth
// overhead), however, here we send it potentially 2 times per subscribed
// region by including it in the `CompSync` message.
client.send_fallible(ServerGeneral::CompSync(
comp_sync_package,
force_updates.get(*client_entity).map_or(0, |f| f.counter()),