Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(devtools/five): change request list use for streaming progress
The pgStreamer changes meant dependency requests would not lead to streaming progress being displayed, so we just scan the full entry list. This does not seem to impact performance much at all, thankfully.
  • Loading branch information
blattersturm committed Aug 13, 2020
1 parent 7503434 commit 32f591e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions code/components/devtools-five/src/StreamingProgress.cpp
Expand Up @@ -70,9 +70,15 @@ static void StreamingProgress_Update()

std::set<std::string> foundNow;

for (const auto* entry = streaming->RequestListHead; entry; entry = entry->Next)
for (uint32_t idx = 0; idx < streaming->numEntries; idx++)
{
auto data = &streaming->Entries[entry->Index];
auto data = &streaming->Entries[idx];
auto flags = data->flags & 3;

if (flags != 2 && flags != 3)
{
continue;
}

// try getting streaming data
StreamingPackfileEntry* spf = streaming::GetStreamingPackfileForEntry(data);
Expand Down

0 comments on commit 32f591e

Please sign in to comment.