mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:17:01 +02:00
removed some debugging
This commit is contained in:
parent
28c5d5b7bf
commit
bc80862825
3 changed files with 8 additions and 7 deletions
|
@ -42,7 +42,7 @@ void OctreeInboundPacketProcessor::resetStats() {
|
||||||
void OctreeInboundPacketProcessor::processPacket(const HifiSockAddr& senderSockAddr,
|
void OctreeInboundPacketProcessor::processPacket(const HifiSockAddr& senderSockAddr,
|
||||||
unsigned char* packetData, ssize_t packetLength) {
|
unsigned char* packetData, ssize_t packetLength) {
|
||||||
|
|
||||||
bool debugProcessPacket = true; //_myServer->wantsVerboseDebug();
|
bool debugProcessPacket = _myServer->wantsVerboseDebug();
|
||||||
|
|
||||||
if (debugProcessPacket) {
|
if (debugProcessPacket) {
|
||||||
printf("OctreeInboundPacketProcessor::processPacket() packetData=%p packetLength=%ld\n", packetData, packetLength);
|
printf("OctreeInboundPacketProcessor::processPacket() packetData=%p packetLength=%ld\n", packetData, packetLength);
|
||||||
|
|
|
@ -40,7 +40,6 @@ void ParticleServer::beforeRun() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
|
void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
|
||||||
printf("ParticleServer::particleCreated(newParticle.creatorTokenID=%u, senderNode)\n",newParticle.getCreatorTokenID());
|
|
||||||
unsigned char outputBuffer[MAX_PACKET_SIZE];
|
unsigned char outputBuffer[MAX_PACKET_SIZE];
|
||||||
unsigned char* copyAt = outputBuffer;
|
unsigned char* copyAt = outputBuffer;
|
||||||
|
|
||||||
|
@ -63,5 +62,4 @@ void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
|
||||||
NodeList::getInstance()->getNodeSocket().writeDatagram((char*) outputBuffer, packetLength,
|
NodeList::getInstance()->getNodeSocket().writeDatagram((char*) outputBuffer, packetLength,
|
||||||
node->getActiveSocket()->getAddress(),
|
node->getActiveSocket()->getAddress(),
|
||||||
node->getActiveSocket()->getPort());
|
node->getActiveSocket()->getPort());
|
||||||
printf("ParticleServer::particleCreated() called writeDatagram() packetLength=%d\n", packetLength);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,10 +236,13 @@ Particle Particle::fromEditPacket(unsigned char* data, int length, int& processe
|
||||||
dataAt += scriptLength;
|
dataAt += scriptLength;
|
||||||
processedBytes += scriptLength;
|
processedBytes += scriptLength;
|
||||||
|
|
||||||
printf("Particle::fromEditPacket()...\n");
|
const bool wantDebugging = false;
|
||||||
printf(" Particle id in packet:%u\n", editID);
|
if (wantDebugging) {
|
||||||
newParticle.debugDump();
|
printf("Particle::fromEditPacket()...\n");
|
||||||
|
printf(" Particle id in packet:%u\n", editID);
|
||||||
|
newParticle.debugDump();
|
||||||
|
}
|
||||||
|
|
||||||
return newParticle;
|
return newParticle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue