Skip to content

Add diagnostic logging to Forward+ clustered renderer#116398

Open
glkdrlgkrlzflnjkgh wants to merge 4 commits intogodotengine:masterfrom
glkdrlgkrlzflnjkgh:forwardplus-logging
Open

Add diagnostic logging to Forward+ clustered renderer#116398
glkdrlgkrlzflnjkgh wants to merge 4 commits intogodotengine:masterfrom
glkdrlgkrlzflnjkgh:forwardplus-logging

Conversation

@glkdrlgkrlzflnjkgh
Copy link

@glkdrlgkrlzflnjkgh glkdrlgkrlzflnjkgh commented Feb 17, 2026

This PR adds logging to the forward+ clustered renderer when it fails to be created. the second modified file? I honestly have no idea what modified it.

Signed-off-by: Callum Nicoll <xcallumnicx@outlook.com>
@glkdrlgkrlzflnjkgh glkdrlgkrlzflnjkgh requested a review from a team as a code owner February 17, 2026 09:12
@glkdrlgkrlzflnjkgh
Copy link
Author

This PR adds more detail to what is logged when the render pipeline creation in 3D forward+ clustered wirth vulkan fails

@glkdrlgkrlzflnjkgh
Copy link
Author

OH. sorry about the code formatting.

Copy link
Contributor

@AR-DEV-1 AR-DEV-1 left a comment

Choose a reason for hiding this comment

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

Please remove the comments & set up pre-commit hooks & formatting locally.
Take a look at https://contributing.godotengine.org/en/latest/engine/guidelines/code_style.html for more information.

@Calinou
Copy link
Member

Calinou commented Feb 21, 2026

Can you describe why this additional print is needed? Are you trying to troubleshoot a crash that occurs on a player's device?

Signed-off-by: Callum Nicoll <xcallumnicx@outlook.com>
@glkdrlgkrlzflnjkgh
Copy link
Author

I have ran clang-format and setup the pre commit hooks.

@glkdrlgkrlzflnjkgh
Copy link
Author

I have updated this PR with a new commit.

ERR_FAIL_COND_MSG(
pipeline.is_null(),
vformat("Forward+ pipeline creation failed for key %llu (version=%d, flags=%u, ubershader=%d).",
(unsigned long long)p_pipeline_key.hash(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Build error here. It is not clear to Godot on why you want to convert it. The error:
conversion from 'const unsigned long long' to 'Variant' is ambiguous

Copy link
Author

Choose a reason for hiding this comment

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

How would I convert a unsigned long long to a Variant in a non-ambigious way?
(Since I am relatively new to the godot codebase. and I've never really contributed to any big open source projects before.)

Copy link
Contributor

Choose a reason for hiding this comment

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

You cast it to int64_t. Variant is uint64_t for your information. You could do something like:

uint64_t my_u_long = 123456789012345ULL;
Variant v = (int64_t)my_u_long; // Safe

Copy link
Author

Choose a reason for hiding this comment

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

I have cast p_pipeline_key's hash return to int64_t

Copy link
Author

Choose a reason for hiding this comment

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

Will compile the engine again and send this to the branch.

Copy link
Author

Choose a reason for hiding this comment

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

Also. I opened a project (the 3D platformer starter by Kenney) and I got this in the console. no crash. but i think its unrelated to my changes.  ERROR: Bug: Dictionary::operator[] used when there was no value for the given key "colormap". Please report.

Copy link
Author

Choose a reason for hiding this comment

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

just pushed

Copy link
Author

Choose a reason for hiding this comment

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

Should I resolve this now

Copy link
Author

Choose a reason for hiding this comment

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

Im pretty much ready to re-request a review

@Zireael07
Copy link
Contributor

@Calinou They are trying to diagnose #116313

Signed-off-by: Callum Nicoll <xcallumnicx@outlook.com>
@glkdrlgkrlzflnjkgh glkdrlgkrlzflnjkgh requested a review from a team as a code owner March 1, 2026 11:06
Signed-off-by: Callum Nicoll <xcallumnicx@outlook.com>
@glkdrlgkrlzflnjkgh
Copy link
Author

good. 20/20 checks passed. now all i need is someone to review it.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

You should undo the changes that were done to platform/web/package-lock.json, as they are unrelated.

@glkdrlgkrlzflnjkgh
Copy link
Author

glkdrlgkrlzflnjkgh commented Mar 7, 2026 via email

@glkdrlgkrlzflnjkgh
Copy link
Author

The file change to the package lock was caused by my version of npm, I think it could be newer than the one that was originally used to generate the file. sorry about that.

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.

5 participants