History

use BandwidthRecorder rather than recompute Mbps and pps in Application

Seth Alves committed 11 years ago

Commit fc07ecf1 parent bee895b7 files · +32 −31Browse files

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

Unified · Split

interface/src/Application.cpp+8−8
@@ -241,10 +241,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 240 unmodified lines
241241 _mousePressed(false),
242242 _enableProcessOctreeThread(true),
243243 _octreeProcessor(),
244− _inPacketsPerSecond(0),
245− _outPacketsPerSecond(0),
246− _inBytesPerSecond(0),
247− _outBytesPerSecond(0),
244+// _inPacketsPerSecond(0),
245+// _outPacketsPerSecond(0),
246+// _inBytesPerSecond(0),
247+// _outBytesPerSecond(0),
248248 _nodeBoundsDisplay(this),
249249 _previousScriptLocation(),
250250 _applicationOverlay(),
@@ -1380,10 +1380,10 @@ void Application::timer() { · 1129 unmodified lines
13801380
13811381 _fps = (float)_frameCount / diffTime;
13821382
1383− _inPacketsPerSecond = (float) _datagramProcessor.getInPacketCount() / diffTime;
1384− _outPacketsPerSecond = (float) _datagramProcessor.getOutPacketCount() / diffTime;
1385− _inBytesPerSecond = (float) _datagramProcessor.getInByteCount() / diffTime;
1386− _outBytesPerSecond = (float) _datagramProcessor.getOutByteCount() / diffTime;
1383+ // _inPacketsPerSecond = (float) _datagramProcessor.getInPacketCount() / diffTime;
1384+ // _outPacketsPerSecond = (float) _datagramProcessor.getOutPacketCount() / diffTime;
1385+ // _inBytesPerSecond = (float) _datagramProcessor.getInByteCount() / diffTime;
1386+ // _outBytesPerSecond = (float) _datagramProcessor.getOutByteCount() / diffTime;
13871387 _frameCount = 0;
13881388
13891389 _datagramProcessor.resetCounters();

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