nixpulvis / galos

Elite: Dangerous Database and Tools
3 stars 0 forks source link

Store when each `Fetched` region was requested #57

Closed nixpulvis closed 2 months ago

nixpulvis commented 2 months ago

Fetched should be a HashMap<FetchId, Timestamp> where the FetchId represents a loaded bubble, and the new Timestamp is the last requested time.

https://github.com/nixpulvis/galos/blob/544dc9fdfd8228a5b317a6b680f62b61c9db255e/starmap/src/systems/fetch.rs#L36

We should now be able to debounce updates (#40, #48) based on both the updated at information and region existence. If the region didn’t exist we prioritize fetching it.

https://github.com/nixpulvis/galos/blob/544dc9fdfd8228a5b317a6b680f62b61c9db255e/starmap/src/systems/fetch.rs#L100

Related to #60.