-
Notifications
You must be signed in to change notification settings - Fork 11
Threaded tile fetching 2nd iteration #46
Comments
@BergWerkGIS Sort of related: threaded deserialization/parsing of fetched data. I was watching this Unity optimization video and it is suggested to thread stuff like this. Not sure how applicable this is for us, given we do lazy deserialization, but it's worth thinking about. |
@BergWerkGIS Not sure if this is the most recent ticket for threading, but here are some notes about: https://github.com/mapbox/mapbox-sdk-cs/tree/BergWerkGIS-multithread-filesource.
|
🎉
🎉
Prefab is gone now, https://github.com/PimDeWitte/UnityMainThreadDispatcher has been updated 5 days ago to not need a prefab anymore. I just dragged the new
oh, really? Two ideas that come to mind why this implementation might be slower:
Maybe it's because all requests are fired almost at once and thus clog your connection? Do you feel that it is slower on your laptop as well as on devices? Talking about this code fragment: To work around the limitation that even the async |
@david-rhodes I think you were testing with the I think there is another reason why this is slow. Video: ThreadedSlippyTest.zip Tiles (Texture2d) don't get removed when they are out of sight and |
@david-rhodes latest changes here EDIT: don't forget to run This includes latest
It uses attribute Unfortunately this seems to work with Editor only and not when building a player (tried with Windows Native, Android and Windows Store):
Any ideas? |
Anything that references
This is true, but on iOS, for example, the demo should crash well before there's a performance issue. Also, I've tested this specific example on device before (without threading) and it seemed faster. I will try to profile on iOS later today.
Yes, seems slower on laptop as well. |
@BergWerkGIS Just found this, but editor requests (outside of play mode) are broken with this implementation. This is because the previous Check Edit: one more reason to support using different |
refs #11 #37
Refactor multithreaded tile fetching after merge of #40 and standalone
mapbox-sdk-cs
:FileSource
Mapbox.Threading.Dispatcher
Get rid ofDispatcher.Update()
for multithreaded tile fetching #45Map.cs
of Optimize http requests #40The text was updated successfully, but these errors were encountered: