Open ksuprynowicz opened 8 months ago
is this coming from OctreeSendThread::packetDistributor
? it does call sendUnreliablePacket
:
// Re-send packets that were nacked by the client
while (nodeData->hasNextNackedPacket() && _packetsSentThisInterval < maxPacketsPerInterval) {
const NLPacket* packet = nodeData->getNextNackedPacket();
if (packet) {
DependencyManager::get<NodeList>()->sendUnreliablePacket(*packet, *node);
...
}
}
presumably this should call sendPacket
instead, like we do in OctreeSendThread::handlePacketSend
?
the packet nacking was one thing I didn't understand with the PacketList PR. specifically, in OctreeQueryNode::packetListSent
/SentPacketHistory::packetListSent
, we only have one sequence number, but multiple packets, so maybe that's breaking something.
Assert in entity server crashes debug build of the server very often, making it almost impossible to work on it. Maybe we can change assert to critical message, or figure out why it happens?