mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 06:24:20 +02:00
cut back on debuging prints
This commit is contained in:
parent
1484d6e37f
commit
f48f9caea4
3 changed files with 0 additions and 10 deletions
libraries
entities/src
octree/src
physics/src
|
@ -97,7 +97,6 @@
|
|||
bytesRead += sizeof(length); \
|
||||
QByteArray ba((const char*)dataAt, length); \
|
||||
QUuid value = QUuid::fromRfc4122(ba); \
|
||||
qDebug() << "READING UUID" << (unsigned int)ba[0] << (unsigned int)ba[1] << value << length; \
|
||||
dataAt += length; \
|
||||
bytesRead += length; \
|
||||
if (overwriteLocalData) { \
|
||||
|
|
|
@ -418,7 +418,6 @@ bool OctreePacketData::appendValue(const QUuid& uuid) {
|
|||
bool success = appendValue(length);
|
||||
if (success) {
|
||||
success = appendRawData((const unsigned char*)bytes.constData(), bytes.size());
|
||||
qDebug() << "SENDING UUID" << (unsigned int)bytes[0] << (unsigned int)bytes[1] << uuid << length;
|
||||
}
|
||||
return success;
|
||||
}
|
||||
|
|
|
@ -191,11 +191,8 @@ bool EntityMotionState::shouldSendUpdate(uint32_t simulationFrame) {
|
|||
QUuid myNodeID = nodeList->getSessionUUID();
|
||||
QUuid simulatorID = _entity->getSimulatorID();
|
||||
|
||||
qDebug() << "XXX" << simulatorID << myNodeID;
|
||||
|
||||
if (!simulatorID.isNull() && simulatorID != myNodeID) {
|
||||
// some other Node is simulating this, so don't broadcast our computations.
|
||||
qDebug() << "NOT SENDING DUE TO NOT OWNER";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -255,11 +252,6 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
QUuid myNodeID = nodeList->getSessionUUID();
|
||||
QUuid simulatorID = _entity->getSimulatorID();
|
||||
|
||||
// qDebug() << "XXX me =" << (simulatorID == myNodeID)
|
||||
// << "_numNonMovingUpdates =" << _numNonMovingUpdates
|
||||
// << "stopped =" << (zeroSpin && zeroSpeed)
|
||||
// << "active =" << _body->isActive();
|
||||
|
||||
if (simulatorID.isNull() && !(zeroSpeed && zeroSpin)) {
|
||||
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
|
||||
_entity->setSimulatorID(myNodeID);
|
||||
|
|
Loading…
Reference in a new issue