realXtend/naali — pull request #709 by jonnenauha (2013-08-05 07:24:15+00:00)
Title: Meshmoon - HttpAssetProvider improvements

See previous details at https://github.com/realXtend/naali/pull/707

Added to above:

* Queuing of completed transfers and serving them with max 16msec/frame to AssetAPI. Before N transfers could complete from Qt in the same Tundra main loop frame and be fed to AssetAPI. This ofc resulted in freezing Tundra for how ever it took to load them. Note that the 16msec will take into account how long each transfer will spend in the `AssetAPI` and `IAsset` internals.
* Static `HttpAssetProvider::AsyncCacheWriteThreshold` that is default set to 0. This means that everything is written to disk with the threaded operation. I left this variable there for easy debugging and profiling, when/if we want to find a sweet spot for disabling async writes below a particular file size.