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
159159
160160 DownloadInfoResult AccountServicesScriptingInterface::getDownloadInfo() {
161161 DownloadInfoResult result;
162− foreach(const auto& resource, ResourceCache::getLoadingRequests()) {
163− result.downloading.append(resource->getProgress() * 100.0f);
162+ foreach(const auto& resourcePair, ResourceCache::getLoadingRequests()) {
163+ result.downloading.append(resourcePair.first->getProgress() * 100.0f);
164164 }
165165 result.pending = ResourceCache::getPendingRequestCount();
166166 return result;