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
241 _mousePressed(false),241 _mousePressed(false),
242 _enableProcessOctreeThread(true),242 _enableProcessOctreeThread(true),
243 _octreeProcessor(),243 _octreeProcessor(),
244 _inPacketsPerSecond(0),244// _inPacketsPerSecond(0),
245 _outPacketsPerSecond(0),245// _outPacketsPerSecond(0),
246 _inBytesPerSecond(0),246// _inBytesPerSecond(0),
247 _outBytesPerSecond(0),247// _outBytesPerSecond(0),
248 _nodeBoundsDisplay(this),248 _nodeBoundsDisplay(this),
249 _previousScriptLocation(),249 _previousScriptLocation(),
250 _applicationOverlay(),250 _applicationOverlay(),
@@ -1380,10 +1380,10 @@ void Application::timer() { · 1129 unmodified lines
1380 1380
1381 _fps = (float)_frameCount / diffTime;1381 _fps = (float)_frameCount / diffTime;
1382 1382
1383 _inPacketsPerSecond = (float) _datagramProcessor.getInPacketCount() / diffTime;1383 // _inPacketsPerSecond = (float) _datagramProcessor.getInPacketCount() / diffTime;
1384 _outPacketsPerSecond = (float) _datagramProcessor.getOutPacketCount() / diffTime;1384 // _outPacketsPerSecond = (float) _datagramProcessor.getOutPacketCount() / diffTime;
1385 _inBytesPerSecond = (float) _datagramProcessor.getInByteCount() / diffTime;1385 // _inBytesPerSecond = (float) _datagramProcessor.getInByteCount() / diffTime;
1386 _outBytesPerSecond = (float) _datagramProcessor.getOutByteCount() / diffTime;1386 // _outBytesPerSecond = (float) _datagramProcessor.getOutByteCount() / diffTime;
1387 _frameCount = 0;1387 _frameCount = 0;
1388 1388
1389 _datagramProcessor.resetCounters();1389 _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