History

model loading priority updates over time, takes into account out of bounds, avatar entities have higher priority, and fsts can specify to wait for wearables to load before rendering

HifiExperiments committed 2 years ago

Commit fe61d921 parent 93c1ed621 files · +156 −95Browse files

Showing the changes to interface/src/scripting/AccountServicesScriptingInterface.cpp (1 of 21 files). Show all

Unified · Split

interface/src/scripting/AccountServicesScriptingInterface.cpp+2−2
@@ -159,8 +159,8 @@ bool DownloadInfoResultFromScriptValue(const ScriptValue& object, DownloadInfoRe · 158 unmodified lines
159 159
160DownloadInfoResult AccountServicesScriptingInterface::getDownloadInfo() {160DownloadInfoResult AccountServicesScriptingInterface::getDownloadInfo() {
161 DownloadInfoResult result;161 DownloadInfoResult result;
162 foreach(const auto& resource, ResourceCache::getLoadingRequests()) {162 foreach(const auto& resourcePair, ResourceCache::getLoadingRequests()) {
163 result.downloading.append(resource->getProgress() * 100.0f);163 result.downloading.append(resourcePair.first->getProgress() * 100.0f);
164 }164 }
165 result.pending = ResourceCache::getPendingRequestCount();165 result.pending = ResourceCache::getPendingRequestCount();
166 return result;166 return result;