mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:56:54 +02:00
hide debug messages unless requested
This commit is contained in:
parent
43e190fe3c
commit
b3f6d40935
1 changed files with 11 additions and 7 deletions
|
@ -234,11 +234,13 @@ void deepestLevelVoxelDistributor(AgentList* agentList,
|
||||||
bool wantDelta = agentData->getWantDelta();
|
bool wantDelta = agentData->getWantDelta();
|
||||||
const ViewFrustum* lastViewFrustum = wantDelta ? &agentData->getLastKnownViewFrustum() : NULL;
|
const ViewFrustum* lastViewFrustum = wantDelta ? &agentData->getLastKnownViewFrustum() : NULL;
|
||||||
|
|
||||||
printf("deepestLevelVoxelDistributor() viewFrustumChanged=%s, nodeBag.isEmpty=%s, viewSent=%s\n",
|
if (::debugVoxelSending) {
|
||||||
|
printf("deepestLevelVoxelDistributor() viewFrustumChanged=%s, nodeBag.isEmpty=%s, viewSent=%s\n",
|
||||||
viewFrustumChanged ? "yes" : "no",
|
viewFrustumChanged ? "yes" : "no",
|
||||||
agentData->nodeBag.isEmpty() ? "yes" : "no",
|
agentData->nodeBag.isEmpty() ? "yes" : "no",
|
||||||
agentData->getViewSent() ? "yes" : "no"
|
agentData->getViewSent() ? "yes" : "no"
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// If the current view frustum has changed OR we have nothing to send, then search against
|
// If the current view frustum has changed OR we have nothing to send, then search against
|
||||||
// the current view frustum for things to send.
|
// the current view frustum for things to send.
|
||||||
|
@ -364,7 +366,9 @@ void *distributeVoxelsToListeners(void *args) {
|
||||||
// Sometimes the agent data has not yet been linked, in which case we can't really do anything
|
// Sometimes the agent data has not yet been linked, in which case we can't really do anything
|
||||||
if (agentData) {
|
if (agentData) {
|
||||||
bool viewFrustumChanged = agentData->updateCurrentViewFrustum();
|
bool viewFrustumChanged = agentData->updateCurrentViewFrustum();
|
||||||
printf("agentData->updateCurrentViewFrustum() viewFrustumChanged=%s\n", (viewFrustumChanged ? "yes" : "no"));
|
if (::debugVoxelSending) {
|
||||||
|
printf("agentData->updateCurrentViewFrustum() changed=%s\n", (viewFrustumChanged ? "yes" : "no"));
|
||||||
|
}
|
||||||
|
|
||||||
if (agentData->getWantResIn()) {
|
if (agentData->getWantResIn()) {
|
||||||
resInVoxelDistributor(agentList, agent, agentData);
|
resInVoxelDistributor(agentList, agent, agentData);
|
||||||
|
|
Loading…
Reference in a new issue