Indication for “graphics complete”
See original GitHub issueIssue Type
[X] Question
Description and/or steps/code to reproduce the problem
Is there some way to know for sure if the graphics engine in osmdroid is completely done? If there are numerous overlays, the update may take a while. And I am not allowed to change the underlying data in between, as this could lead to an Exception.
The drawing process is triggered with mapView.invalidate()
but when does it finish?
Environment
If it’s a bug, version(s) of android this affects:
All
Version of osmdroid the issue relates to:
6.1.11
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
URR 0.9 Update: Graphics Complete! - Dr Mark R Johnson
URR 0.9 Update: Graphics Complete! Hello everyone! I am so pleased to say that the first major milestone for 0.9 has been accomplished:...
Read more >2021 August Giveaway | Attack Graphics Complete Custom ...
2021 August Giveaway | Attack Graphics Complete Custom Graphics Kit. 3.1K views 1 year ago. Rocky Mountain ATV MC. Rocky Mountain ATV MC....
Read more >Superhero Graphics - Complete Set - Pinterest
Superhero Graphics - Complete Set. Description 12 unique and diverse superhero figures that students can color in. These are designed to ...
Read more >Harvard Graphics: The Complete Reference/Covers Releases ...
A guide to all versions of Harvard Graphics, including the new version 2.3. The five sections cover descriptions of all the Harvard Graphics...
Read more >Vital Sign & Graphics | Cohoes NY - Facebook
Vital Sign & Graphics Company is a Cohoes, NY based signage manufacturer ... May be an image of text that says 'Vital Sign...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@monsieurtanuki You were right: It had nothing to do with the display refresh. The problem was the following: There is a data set of geographical coordinates, which are translated into one or more
Polyline
s for the map. This data set can be manipulated by two asynchronous threads, which may interfere with each other. To avoid that, I introduced a Semaphore, which is initialized at the start of the app.public static Semaphore mutex = new Semaphore(1);
Then, in the two competing threads, they block each other with:
And everything works without any problems. Thanks for your support!
@monsieurtanuki OK, I will make some tests accordingly and let you know…