mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:37:19 +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
|
@ -97,7 +97,6 @@
|
||||||
bytesRead += sizeof(length); \
|
bytesRead += sizeof(length); \
|
||||||
QByteArray ba((const char*)dataAt, length); \
|
QByteArray ba((const char*)dataAt, length); \
|
||||||
QUuid value = QUuid::fromRfc4122(ba); \
|
QUuid value = QUuid::fromRfc4122(ba); \
|
||||||
qDebug() << "READING UUID" << (unsigned int)ba[0] << (unsigned int)ba[1] << value << length; \
|
|
||||||
dataAt += length; \
|
dataAt += length; \
|
||||||
bytesRead += length; \
|
bytesRead += length; \
|
||||||
if (overwriteLocalData) { \
|
if (overwriteLocalData) { \
|
||||||
|
|
|
@ -418,7 +418,6 @@ bool OctreePacketData::appendValue(const QUuid& uuid) {
|
||||||
bool success = appendValue(length);
|
bool success = appendValue(length);
|
||||||
if (success) {
|
if (success) {
|
||||||
success = appendRawData((const unsigned char*)bytes.constData(), bytes.size());
|
success = appendRawData((const unsigned char*)bytes.constData(), bytes.size());
|
||||||
qDebug() << "SENDING UUID" << (unsigned int)bytes[0] << (unsigned int)bytes[1] << uuid << length;
|
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,11 +191,8 @@ bool EntityMotionState::shouldSendUpdate(uint32_t simulationFrame) {
|
||||||
QUuid myNodeID = nodeList->getSessionUUID();
|
QUuid myNodeID = nodeList->getSessionUUID();
|
||||||
QUuid simulatorID = _entity->getSimulatorID();
|
QUuid simulatorID = _entity->getSimulatorID();
|
||||||
|
|
||||||
qDebug() << "XXX" << simulatorID << myNodeID;
|
|
||||||
|
|
||||||
if (!simulatorID.isNull() && simulatorID != myNodeID) {
|
if (!simulatorID.isNull() && simulatorID != myNodeID) {
|
||||||
// some other Node is simulating this, so don't broadcast our computations.
|
// some other Node is simulating this, so don't broadcast our computations.
|
||||||
qDebug() << "NOT SENDING DUE TO NOT OWNER";
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,11 +252,6 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
||||||
QUuid myNodeID = nodeList->getSessionUUID();
|
QUuid myNodeID = nodeList->getSessionUUID();
|
||||||
QUuid simulatorID = _entity->getSimulatorID();
|
QUuid simulatorID = _entity->getSimulatorID();
|
||||||
|
|
||||||
// qDebug() << "XXX me =" << (simulatorID == myNodeID)
|
|
||||||
// << "_numNonMovingUpdates =" << _numNonMovingUpdates
|
|
||||||
// << "stopped =" << (zeroSpin && zeroSpeed)
|
|
||||||
// << "active =" << _body->isActive();
|
|
||||||
|
|
||||||
if (simulatorID.isNull() && !(zeroSpeed && zeroSpin)) {
|
if (simulatorID.isNull() && !(zeroSpeed && zeroSpin)) {
|
||||||
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
|
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
|
||||||
_entity->setSimulatorID(myNodeID);
|
_entity->setSimulatorID(myNodeID);
|
||||||
|
|
Loading…
Reference in a new issue