Skip to content

debug: allow environment vars to override DebugRegistry defaults#10024

Open
poweifeng wants to merge 1 commit into
mainfrom
pf/feature-set-in-env
Open

debug: allow environment vars to override DebugRegistry defaults#10024
poweifeng wants to merge 1 commit into
mainfrom
pf/feature-set-in-env

Conversation

@poweifeng
Copy link
Copy Markdown
Contributor

No description provided.

@poweifeng poweifeng added the internal Issue/PR does not affect clients label May 19, 2026
Comment thread filament/src/details/DebugRegistry.cpp
Comment on lines +132 to +140
case INT: {
int v;
if (sscanf(val, "%d", &v) == 1) {
if (*static_cast<int*>(p) != v) {
*static_cast<int*>(p) = v;
changed = true;
}
}
break;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like a lot of those could be a template? (where you pass the format string).

Copy link
Copy Markdown
Collaborator

@pixelflinger pixelflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should print/log each variable that is being overriden (including in release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants