mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
CR feedback
This commit is contained in:
parent
74733452da
commit
c4a5160b89
1 changed files with 3 additions and 2 deletions
|
@ -12,9 +12,11 @@
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <SharedUtil.h>
|
#include <NumericalConstants.h>
|
||||||
#include <PerfStat.h>
|
#include <PerfStat.h>
|
||||||
#include <RenderArgs.h>
|
#include <RenderArgs.h>
|
||||||
|
#include <SharedUtil.h>
|
||||||
|
|
||||||
#include "OctreeLogging.h"
|
#include "OctreeLogging.h"
|
||||||
#include "OctreeRenderer.h"
|
#include "OctreeRenderer.h"
|
||||||
|
|
||||||
|
@ -185,7 +187,6 @@ void OctreeRenderer::processDatagram(const QByteArray& dataByteArray, const Shar
|
||||||
}
|
}
|
||||||
quint64 sinceLastWindow = now - _lastWindowAt;
|
quint64 sinceLastWindow = now - _lastWindowAt;
|
||||||
|
|
||||||
const quint64 USECS_PER_SECOND = 1000 * 1000;
|
|
||||||
if (sinceLastWindow > USECS_PER_SECOND) {
|
if (sinceLastWindow > USECS_PER_SECOND) {
|
||||||
float packetsPerSecondInWindow = (float)_packetsInLastWindow / (float)(sinceLastWindow / USECS_PER_SECOND);
|
float packetsPerSecondInWindow = (float)_packetsInLastWindow / (float)(sinceLastWindow / USECS_PER_SECOND);
|
||||||
float elementsPerSecondInWindow = (float)_elementsInLastWindow / (float)(sinceLastWindow / USECS_PER_SECOND);
|
float elementsPerSecondInWindow = (float)_elementsInLastWindow / (float)(sinceLastWindow / USECS_PER_SECOND);
|
||||||
|
|
Loading…
Reference in a new issue