History

Merge branch 'master' of https://github.com/worklist/hifi into 19507

stojce committed 12 years ago

Commit d3dff7a2 parents d90e15a 9dd257340 files · +850 −363Browse files

Showing the changes to interface/src/Application.cpp (1 of 40 files). Show all

Unified · Split

interface/src/Application.cpp+13−2
@@ -2676,7 +2676,7 @@ void Application::displayStats() { · 2675 unmodified lines
26762676
26772677 glm::vec3 avatarPos = _myAvatar->getPosition();
26782678
2679− lines = _statsExpanded ? 4 : 3;
2679+ lines = _statsExpanded ? 5 : 3;
26802680 displayStatsBackground(backgroundColor, horizontalOffset, 0, _glWidget->width() - (mirrorEnabled ? 301 : 411) - horizontalOffset, lines * STATS_PELS_PER_LINE + 10);
26812681 horizontalOffset += 5;
26822682
@@ -2713,12 +2713,23 @@ void Application::displayStats() { · 30 unmodified lines
27132713
27142714 verticalOffset += STATS_PELS_PER_LINE;
27152715 drawText(horizontalOffset, verticalOffset, 0.10f, 0.f, 2.f, avatarMixerStats, WHITE_TEXT);
2716+
2717+ stringstream downloadStats;
2718+ downloadStats << "Downloads: ";
2719+ foreach (Resource* resource, ResourceCache::getLoadingRequests()) {
2720+ const float MAXIMUM_PERCENTAGE = 100.0f;
2721+ downloadStats << roundf(resource->getProgress() * MAXIMUM_PERCENTAGE) << "% ";
2722+ }
2723+ downloadStats << "(" << ResourceCache::getPendingRequestCount() << " pending)";
2724+
2725+ verticalOffset += STATS_PELS_PER_LINE;
2726+ drawText(horizontalOffset, verticalOffset, 0.10f, 0.f, 2.f, downloadStats.str().c_str(), WHITE_TEXT);
27162727 }
27172728
27182729 verticalOffset = 0;
27192730 horizontalOffset = _glWidget->width() - (mirrorEnabled ? 300 : 410);
27202731
2721− lines = _statsExpanded ? 11 : 3;
2732+ lines = _statsExpanded ? 12 : 3;
27222733 displayStatsBackground(backgroundColor, horizontalOffset, 0, _glWidget->width() - horizontalOffset, lines * STATS_PELS_PER_LINE + 10);
27232734 horizontalOffset += 5;
27242735

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t