Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2865,27 +2865,19 @@ void Application::displayStats() { · 2864 unmodified lines | ||
| 2865 | 2865 | drawtext(10, statsVerticalOffset + 230, 0.10f, 0, 1.0, 0, (char *)voxelStats.str().c_str()); |
| 2866 | 2866 | |
| 2867 | 2867 | voxelStats.str(""); |
| 2868 | − voxelStats << "Voxels Created: " << _voxels.getVoxelsCreated() / 1000.f << "K (" << _voxels.getVoxelsCreatedPerSecondAverage() / 1000.f | |
| 2869 | − << "Kps) "; | |
| 2868 | + char* voxelDetails = _voxelSceneStats.getItemValue(VoxelSceneStats::ITEM_VOXELS); | |
| 2869 | + voxelStats << "Voxels Sent from Server: " << voxelDetails; | |
| 2870 | 2870 | drawtext(10, statsVerticalOffset + 250, 0.10f, 0, 1.0, 0, (char *)voxelStats.str().c_str()); |
| 2871 | − | |
| 2871 | + | |
| 2872 | 2872 | voxelStats.str(""); |
| 2873 | − voxelStats << "Voxels Colored: " << _voxels.getVoxelsColored() / 1000.f << "K (" << _voxels.getVoxelsColoredPerSecondAverage() / 1000.f | |
| 2874 | − << "Kps) "; | |
| 2873 | + voxelDetails = _voxelSceneStats.getItemValue(VoxelSceneStats::ITEM_ELAPSED); | |
| 2874 | + voxelStats << "Scene Send Time from Server: " << voxelDetails; | |
| 2875 | 2875 | drawtext(10, statsVerticalOffset + 270, 0.10f, 0, 1.0, 0, (char *)voxelStats.str().c_str()); |
| 2876 | − | |
| 2877 | − voxelStats.str(""); | |
| 2878 | − voxelStats << "Voxel Bits Read: " << _voxels.getVoxelsBytesRead() * 8.f / 1000000.f | |
| 2879 | − << "M (" << _voxels.getVoxelsBytesReadPerSecondAverage() * 8.f / 1000000.f << " Mbps)"; | |
| 2880 | − drawtext(10, statsVerticalOffset + 290,0.10f, 0, 1.0, 0, (char *)voxelStats.str().c_str()); | |
| 2881 | 2876 | |
| 2882 | 2877 | voxelStats.str(""); |
| 2883 | − float voxelsBytesPerColored = _voxels.getVoxelsColored() | |
| 2884 | − ? ((float) _voxels.getVoxelsBytesRead() / _voxels.getVoxelsColored()) | |
| 2885 | − : 0; | |
| 2886 | − | |
| 2887 | − voxelStats << "Voxels Bits per Colored: " << voxelsBytesPerColored * 8; | |
| 2888 | − drawtext(10, statsVerticalOffset + 310, 0.10f, 0, 1.0, 0, (char *)voxelStats.str().c_str()); | |
| 2878 | + voxelDetails = _voxelSceneStats.getItemValue(VoxelSceneStats::ITEM_ENCODE); | |
| 2879 | + voxelStats << "Encode Time on Server: " << voxelDetails; | |
| 2880 | + drawtext(10, statsVerticalOffset + 290, 0.10f, 0, 1.0, 0, (char *)voxelStats.str().c_str()); | |
| 2889 | 2881 | |
| 2890 | 2882 | Node *avatarMixer = NodeList::getInstance()->soloNodeOfType(NODE_TYPE_AVATAR_MIXER); |
| 2891 | 2883 | char avatarMixerStats[200]; |