Skip to content

GI: Cache repeated itos() calls for SDFGI#114538

Open
kellemar wants to merge 1 commit intogodotengine:masterfrom
kellemar:gi-cache-itos-strings
Open

GI: Cache repeated itos() calls for SDFGI#114538
kellemar wants to merge 1 commit intogodotengine:masterfrom
kellemar:gi-cache-itos-strings

Conversation

@kellemar
Copy link
Copy Markdown

@kellemar kellemar commented Jan 2, 2026

Instead of calling itos() repeatedly for LIGHTPROBE_OCT_SIZE, this caches itos(SDFGI::LIGHTPROBE_OCT_SIZE) and itos(SDFGI::SH_SIZE) at the start of the SDFGI initialization block.

Minor optimization during engine init, which avoids redundant int-to-string conversions.

@kellemar kellemar requested a review from a team as a code owner January 2, 2026 20:38
@Chaosus Chaosus added this to the 4.7 milestone Jan 3, 2026
@AThousandShips
Copy link
Copy Markdown
Member

Do you have some comparison data on the effects of this? Please see our optimization guidelines

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants