Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite tile_map loading to be more reliable #423

Merged
merged 1 commit into from
Sep 12, 2016

Conversation

pjreed
Copy link
Contributor

@pjreed pjreed commented Aug 26, 2016

This changes how the tile_map plugin handles making network requires for tiles.
It will now:

  • Use thread conditions to prompt loading rather than spinning
  • Prioritize loading tiles in the visible area
  • Retry a failed network request up to 5 times
  • Not discard tile requests if there are more than 100 in the queue

These changes should significantly reduce (if not completely eliminate) the
number of tiles that fail to load and hopefully make tiles within the visible
area appear faster when there are many in the queue.

Fixes #342 and #421.

This changes how the tile_map plugin handles making network requires for tiles.
It will now:
- Use thread conditions to prompt loading rather than spinning
- Prioritize loading tiles in the visible area
- Retry a failed network request up to 5 times
- Not discard tile requests if there are more than 100 in the queue

This changes should significantly reduce (if not completely eliminate) the
number of tiles that fail to load and hopefully make tiles within the visible
area appear faster when there are many in the queue.

Fixes swri-robotics#342 and swri-robotics#421.
@jhoare
Copy link

jhoare commented Sep 6, 2016

Thanks! Anecdotally, it seems like it takes a while to start displaying images, but playing around it looks like everything does load, which is a big improvement!

@pjreed
Copy link
Contributor Author

pjreed commented Sep 12, 2016

Yeah, it does seem like it can take a little longer to initially display tiles. It could probably stand some more improvement, but this is enough better that I'll go ahead and merge it in.

@pjreed pjreed merged commit 2101f6d into swri-robotics:indigo-devel Sep 12, 2016
@pjreed pjreed deleted the 421/tile-map-loading branch September 29, 2017 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants