Skip to content

Commit 0b8a28d

Browse files
chore: remove spam logs
1 parent d4b3e6f commit 0b8a28d

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

android/sharedCode/src/main/cpp/arcore/VROARSessionARCore.cpp

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ VROARSessionARCore::VROARSessionARCore(std::shared_ptr<VRODriverOpenGL> driver)
6969
_session = nullptr;
7070
_frame = nullptr;
7171
_frameCount = 0;
72-
73-
// Sync occlusion mode with depth mode default
74-
// Since depth mode defaults to Automatic, enable occlusion by default
75-
if (_depthMode == arcore::DepthMode::Automatic) {
76-
VROARSession::setOcclusionMode(VROOcclusionMode::DepthBased);
77-
}
7872
}
7973

8074
void VROARSessionARCore::setARCoreSession(
@@ -185,46 +179,31 @@ void VROARSessionARCore::resetSession(bool resetTracking, bool removeAnchors) {
185179

186180
bool VROARSessionARCore::setAnchorDetection(
187181
std::set<VROAnchorDetection> types) {
188-
// DEBUG LOGGING - START
189-
pinfo("=== VROARSessionARCore::setAnchorDetection called ===");
190-
pinfo(" Input types count: %d", (int)types.size());
191-
// DEBUG LOGGING - END
192-
193182
std::set<VROAnchorDetection>::iterator it;
194183

195184
bool planesHorizontal = false;
196185
bool planesVertical = false;
197186

198187
for (it = types.begin(); it != types.end(); it++) {
199188
VROAnchorDetection type = *it;
200-
pinfo(" Processing type: %d", (int)type); // DEBUG
201189
switch (type) {
202190
case VROAnchorDetection::PlanesHorizontal:
203191
planesHorizontal = true;
204-
pinfo(" -> Set planesHorizontal = true"); // DEBUG
205192
break;
206193
case VROAnchorDetection::PlanesVertical:
207194
planesVertical = true;
208-
pinfo(" -> Set planesVertical = true"); // DEBUG
209195
break;
210196
}
211197
}
212198

213-
pinfo(" Final: planesHorizontal=%d, planesVertical=%d", planesHorizontal,
214-
planesVertical); // DEBUG
215-
216199
arcore::PlaneFindingMode newMode;
217200
if (planesHorizontal && planesVertical) {
218-
pinfo(" Setting mode: HorizontalAndVertical"); // DEBUG
219201
newMode = arcore::PlaneFindingMode::HorizontalAndVertical;
220202
} else if (planesHorizontal) {
221-
pinfo(" Setting mode: Horizontal ONLY"); // DEBUG
222203
newMode = arcore::PlaneFindingMode::Horizontal;
223204
} else if (planesVertical) {
224-
pinfo(" Setting mode: Vertical ONLY"); // DEBUG
225205
newMode = arcore::PlaneFindingMode::Vertical;
226206
} else {
227-
pinfo(" Setting mode: DISABLED"); // DEBUG
228207
newMode = arcore::PlaneFindingMode::Disabled;
229208
}
230209

@@ -333,9 +312,6 @@ bool VROARSessionARCore::updateARCoreConfig() {
333312
}
334313
}
335314

336-
pinfo("updateARCoreConfig: Creating config with semanticMode=%d (0=Disabled, 1=Enabled), effectiveSemanticMode=%d",
337-
(int)_semanticMode, (int)effectiveSemanticMode);
338-
339315
arcore::Config *config =
340316
_session->createConfig(_lightingMode, _planeFindingMode, _updateMode,
341317
_cloudAnchorMode, _focusMode, effectiveDepthMode, effectiveSemanticMode, effectiveGeospatialMode);
@@ -352,7 +328,6 @@ bool VROARSessionARCore::updateARCoreConfig() {
352328
delete (config);
353329

354330
if (status == arcore::ConfigStatus::Success) {
355-
pinfo("updateARCoreConfig: Configuration successful");
356331
_session->resume();
357332
return true;
358333
} else {
@@ -1604,14 +1579,7 @@ void VROARSessionARCore::setSemanticModeEnabled(bool enabled) {
16041579
}
16051580

16061581
void VROARSessionARCore::updateDepthTexture() {
1607-
// Limit log frequency to avoid spam
1608-
static int logCounter = 0;
1609-
if (logCounter++ % 60 == 0) {
1610-
pinfo("VROARSessionARCore::updateDepthTexture called (sampled)");
1611-
}
1612-
16131582
if (!isDepthModeEnabled()) {
1614-
// pinfo("VROARSessionARCore: Depth mode disabled, skipping update");
16151583
return;
16161584
}
16171585

@@ -1670,12 +1638,6 @@ void VROARSessionARCore::updateDepthTexture() {
16701638
}
16711639
}
16721640

1673-
// DEBUG: Log center depth value
1674-
if (numPixels > 0) {
1675-
int centerIdx = (height / 2) * width + (width / 2);
1676-
// pinfo("VROARSessionARCore: Depth update. Center val: %f, Width: %d, Height: %d", floatData[centerIdx], width, height);
1677-
}
1678-
16791641
// If texture doesn't exist, create it
16801642
if (!_depthTexture || _depthTexture->getWidth() != width || _depthTexture->getHeight() != height) {
16811643
pinfo("VROARSessionARCore: Creating new depth texture (size %d x %d)", width, height);

0 commit comments

Comments
 (0)