mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
fix a bug in bad PPS calculation
This commit is contained in:
parent
7d2bdb3689
commit
b63e15f2e9
1 changed files with 3 additions and 5 deletions
|
@ -3053,9 +3053,8 @@ void Application::queryOctree(NodeType_t serverType, PacketType::Value packetTyp
|
||||||
voxelDetailsForCode(rootCode, rootDetails);
|
voxelDetailsForCode(rootCode, rootDetails);
|
||||||
AACube serverBounds(glm::vec3(rootDetails.x * TREE_SCALE,
|
AACube serverBounds(glm::vec3(rootDetails.x * TREE_SCALE,
|
||||||
rootDetails.y * TREE_SCALE,
|
rootDetails.y * TREE_SCALE,
|
||||||
rootDetails.z * TREE_SCALE),
|
rootDetails.z * TREE_SCALE) - glm::vec3(HALF_TREE_SCALE),
|
||||||
rootDetails.s * TREE_SCALE);
|
rootDetails.s * TREE_SCALE);
|
||||||
|
|
||||||
ViewFrustum::location serverFrustumLocation = _viewFrustum.cubeInFrustum(serverBounds);
|
ViewFrustum::location serverFrustumLocation = _viewFrustum.cubeInFrustum(serverBounds);
|
||||||
|
|
||||||
if (serverFrustumLocation != ViewFrustum::OUTSIDE) {
|
if (serverFrustumLocation != ViewFrustum::OUTSIDE) {
|
||||||
|
@ -3120,11 +3119,10 @@ void Application::queryOctree(NodeType_t serverType, PacketType::Value packetTyp
|
||||||
voxelDetailsForCode(rootCode, rootDetails);
|
voxelDetailsForCode(rootCode, rootDetails);
|
||||||
AACube serverBounds(glm::vec3(rootDetails.x * TREE_SCALE,
|
AACube serverBounds(glm::vec3(rootDetails.x * TREE_SCALE,
|
||||||
rootDetails.y * TREE_SCALE,
|
rootDetails.y * TREE_SCALE,
|
||||||
rootDetails.z * TREE_SCALE),
|
rootDetails.z * TREE_SCALE) - glm::vec3(HALF_TREE_SCALE),
|
||||||
rootDetails.s * TREE_SCALE);
|
rootDetails.s * TREE_SCALE);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ViewFrustum::location serverFrustumLocation = _viewFrustum.cubeInFrustum(serverBounds);
|
ViewFrustum::location serverFrustumLocation = _viewFrustum.cubeInFrustum(serverBounds);
|
||||||
if (serverFrustumLocation != ViewFrustum::OUTSIDE) {
|
if (serverFrustumLocation != ViewFrustum::OUTSIDE) {
|
||||||
inView = true;
|
inView = true;
|
||||||
|
@ -3143,7 +3141,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType::Value packetTyp
|
||||||
} else if (unknownView) {
|
} else if (unknownView) {
|
||||||
if (wantExtraDebugging) {
|
if (wantExtraDebugging) {
|
||||||
qCDebug(interfaceapp) << "no known jurisdiction for node " << *node << ", give it budget of "
|
qCDebug(interfaceapp) << "no known jurisdiction for node " << *node << ", give it budget of "
|
||||||
<< perUnknownServer << " to send us jurisdiction.";
|
<< perUnknownServer << " to send us jurisdiction.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the query's position/orientation to be degenerate in a manner that will get the scene quickly
|
// set the query's position/orientation to be degenerate in a manner that will get the scene quickly
|
||||||
|
|
Loading…
Reference in a new issue