Brad Hefta-Gaub
cd5beabf10
Revert "Drop resource data after load"
2016-03-24 20:37:16 -07:00
Zach Pomerantz
afc853572a
Drop resource data after load
2016-03-24 15:50:51 -07:00
Atlante45
69c516caaf
Have ATP respect request limit
2016-03-23 19:09:28 -07:00
Zach Pomerantz
17aa2845a8
Add finished signal to Resource loading
2016-03-23 13:00:02 -07:00
Andrew Meadows
f58a00f75a
Merge pull request #7409 from huffman/fix-handle-reply-finished
...
Fix edge-case where resource can receive a signal after request deleted
2016-03-21 13:10:24 -07:00
Ryan Huffman
4f32749c17
Fix edge-case where resource can receive a signal after request deleted
2016-03-21 11:54:41 -07:00
Bradley Austin Davis
16e6d9a4f9
Make shared lists thread safe
2016-03-18 11:15:35 -07:00
Mark Johnson
b7a47d7bf2
Tabs -> Spaces
2016-03-12 17:35:57 -08:00
Mark Johnson
d868b541c4
Separate the request limit value from the active request value
...
Use _requestLimit as the download limit, and track active downloads using
_requestsActive. If the limit is changes below the active count, it will
continue downloading all active requests, but not allow new requests until
the active count gets below the limit. If the limit increases, the pending
request queue will be checked immediately to fill the available download slots.
2016-03-12 17:19:29 -08:00
Zach Pomerantz
54af58834a
Mark Resource loaded after postprocessing
2016-03-09 10:34:07 -08:00
Zach Pomerantz
925ea8bcda
Add Resource::isCacheable
2016-03-08 13:30:58 -08:00
Seth Alves
d243132b5c
quiet some logging
2015-12-10 10:28:24 -08:00
Atlante45
b7ba99380a
Pretty up loading debug
2015-10-12 15:32:44 -07:00
Sam Gateau
d0f7ddd3a6
Merge branch 'master' of https://github.com/highfidelity/hifi into orange
2015-09-18 00:03:19 -07:00
Atlante45
9678e70444
Asset caching
2015-09-16 15:17:15 +02:00
Sam Gateau
c37cdce750
Merging back with master
2015-09-10 17:53:50 -07:00
Atlante45
0de4c02e8d
Add time unit in debug
2015-08-31 23:24:14 +02:00
Atlante45
3f5394281b
Fix HTTPS timeout issue
2015-08-31 23:20:07 +02:00
Atlante45
8f74935e96
Don't reload on error
2015-08-31 22:34:16 +02:00
Atlante45
9a9c703a78
Some code cleanup
2015-08-31 22:31:24 +02:00
Atlante45
15e9797827
CR
2015-08-31 22:12:42 +02:00
Atlante45
729fd96539
Fix bug where _requestLimit is stuck at 0
2015-08-28 22:10:33 +02:00
Atlante45
993217491f
Retry to load only on timeout
2015-08-28 20:35:39 +02:00
Ryan Huffman
c6d98f3c67
Update ResourceCache to retry an asset request when the node is unavailable
2015-08-28 10:59:38 -07:00
Atlante45
ea05fcea0c
Forward AssetResourceRequest loading errors
2015-08-28 16:03:31 +02:00
Ryan Huffman
2a4b25dd76
Update names of ResourceRequest enums
2015-08-27 22:23:06 -07:00
Ryan Huffman
147fbd4b54
Update ResourceCache to only emit failure when not retrying
2015-08-27 21:11:12 -07:00
Ryan Huffman
4bbbd892bd
Fix atp scheme checking in ResourceCache
2015-08-27 16:46:33 -07:00
Ryan Huffman
31bdeed396
Remove cache limit for atp urls
2015-08-27 16:43:40 -07:00
Ryan Huffman
dabea21d66
Remove unused variable
2015-08-27 14:30:48 -07:00
Ryan Huffman
b401a62d7f
Disable request limiting for ATP requests in ResourceCache
2015-08-27 13:58:17 -07:00
Ryan Huffman
33d6f561eb
Reintroduce request limit in ResourceCache
2015-08-27 12:52:11 -07:00
Ryan Huffman
b30a008162
Fix bug with NetworkTexture occasionally breaking on assert
2015-08-27 12:48:55 -07:00
Ryan Huffman
667db200c0
Cleanup BatchLoader
2015-08-27 09:39:12 -07:00
Ryan Huffman
269d5bb6da
Resolve bugs with *Cache changes
2015-08-26 14:04:55 -07:00
Ryan Huffman
aa7d8678e1
Merge branch 'protocol' of github.com:birarda/hifi into atp-server
2015-08-26 12:26:11 -07:00
Sam Gateau
1e9fce2a61
Drafting the materials for FBXReader
2015-08-25 22:12:51 -07:00
Ryan Huffman
3959928bbb
Update ResourceRequest::moveData to getData
2015-08-25 15:20:00 -07:00
Anthony J. Thibault
1b3d7fabc8
ResourceCache, NetworkGeometry and Model refactoring and optimizations.
...
* Removed validation logic from Resource class, Qt does this internally and is more
standards compliant. This should result in more accurate caching and faster resource
fetching when cache is stale and validation fails.
* Added loaded and failed slots to Resource class, so it does not have to be polled.
* NetworkGeometry now uses multiple Resource objects to download
the fst/mapping file and the fbx/obj models.
* NetworkGeometry is no longer a subclass of Resource
* NetworkGeometry now has signals for success and failure, you no longer
have to poll it to determine when loading is complete (except for textures *sigh*)
Some functionality was removed
* NetworkGeometry no longer has a fallback
* NetworkGeometry no longer loads LODs or has lod logic.
* The number of FBXGeometry copies is greatly reduced.
* Model::setURL no supports fallback URL, delayLoad or retainCurrent option.
This can result in a pop when switching avatars, and there's no longer a default
if avatar loading fails.
2015-08-20 18:59:51 -07:00
Ryan Huffman
4827d326f4
Update ResourceCache to allow multiple downloads on the same resource
2015-08-19 12:11:47 -07:00
Ryan Huffman
ccc0000fd0
Update ResourceCache to use ResourceRequest
2015-08-03 16:26:16 -07:00
Atlante45
6c591131ba
Made Animations safe for resource reload
2015-07-10 12:01:51 -07:00
Atlante45
90edf055f7
Clear unused resources before refresh
2015-07-09 18:00:07 -07:00
Atlante45
ee3a8b1b6e
Clear resource caches instead of restarting
2015-07-08 18:23:16 -07:00
Howard Stearns
cdef09c9dd
Add comment (and force previous change to the right branch).
2015-05-11 10:12:03 -07:00
Howard Stearns
aed165809c
Use resource cache as long as it is no older than network resource.
...
This allows chache to be used when cdn provides different values for get-vs-head, or for cdn with different resource times in different requests of different sessions.
2015-05-11 10:01:49 -07:00
Seth Alves
e6023c59c1
if _reply is NULL, it doesn't make sense to worry about if it's finished loading or not.
2015-05-10 17:15:48 -07:00
Seth Alves
cb7ff86386
put networking library into its own QLoggingCategory
2015-04-06 15:11:48 -07:00
Brad Hefta-Gaub
d77333953e
Merge pull request #4552 from sethalves/island
...
Fix various collision-model related bugs
2015-03-31 15:47:53 -07:00
David Rowe
154dacf791
Fix typo
2015-03-31 14:21:56 -07:00