Skip to content

allow enableRaytracing UI toggle and config option#32

Closed
watbulb wants to merge 1 commit intoNVIDIAGameWorks:mainfrom
watbulb:enable_raytrace_toggle
Closed

allow enableRaytracing UI toggle and config option#32
watbulb wants to merge 1 commit intoNVIDIAGameWorks:mainfrom
watbulb:enable_raytrace_toggle

Conversation

@watbulb
Copy link
Contributor

@watbulb watbulb commented Jul 1, 2023

This commit allows the enableRaytracing toggle and configuration option to be exposed regardless of build setting. This follows on a internal discussion about comparisons. Please also see the linked issue #213 regarding this change, as a debugOptimized build will need further optimizations to remain truly "optimized" for general use, especially for the vulkan validation layers setting. it looks like meson may also need to be updated to reflect a debugoptimized build selection.

This commit allows the `enableRaytracing` toggle and configuration option to be exposed regardless of build setting. This follows on a internal discussion about comparisons. Please also see the linked issue #213 regarding this change, as a debugOptimized build will need further optimizations to remain truly "optimized" for general use.
@nsubtil
Copy link
Collaborator

nsubtil commented Aug 22, 2023

This change is fine in principle, however we need a mechanism to disable the UI toggle for specific games based on a (separate) config entry.

Modders may want to do engine-side changes to suit the game to Remix, whether config tweaks, e.g., disabling culling altogether, or engine-side changes if source is available. Some of these may break the non-RT mode or make it largely unusable. We'd like to let modders ship a config file with their mod that removes this option from the UI if it's known to be broken on that specific mod, to avoid noise/bug reports around that.

@watbulb would you like to make that change?

@watbulb
Copy link
Contributor Author

watbulb commented Aug 27, 2023

@nsubtil I can take a look at making said change next week. I've been away for work and haven't been too up to date on progress, but I'd be happy to dip my toes back in next week as I have some downtime.

I agree it should be configurable, I think I will brainstorm a couple ways to provide the config file, format, and how it will be parsed as part of the module.

Thanks for commenting <3

@nsubtil
Copy link
Collaborator

nsubtil commented Aug 28, 2023

Thanks!

Note that we already have functionality to add a setting that is read from the config file. You should be able to declare a new setting using the RTX_OPTION macro (or one of the other variants if applicable) and the config file parser will pick it up.

@NV-DM
Copy link
Collaborator

NV-DM commented Nov 8, 2023

REMIX-1878 for tracking.

@jerrans
Copy link
Collaborator

jerrans commented May 7, 2024

@watbulb I merged your change and wrapped it in an additional setting to show/hide this toggle in the UI.

@jerrans jerrans closed this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants