| 41 | } |
| 42 | |
| 43 | void LocalConfig::PostAppInit(SampleUIData& sampleUI) |
| 44 | { |
| 45 | if (RTXPT_LOCAL_CONFIG_ID_STRING == "REF_VS_REALTIME") |
| 46 | { |
| 47 | #if 0 // test for making reference pixel-identical to realtime |
| 48 | sampleUI.AccumulationAA = false; |
| 49 | sampleUI.AccumulationTarget = 4; |
| 50 | sampleUI.RealtimeSamplesPerPixel = sampleUI.AccumulationTarget; |
| 51 | sampleUI.RealtimeAA = 0; |
| 52 | sampleUI.RealtimeDenoiser = false; |
| 53 | sampleUI.DbgFreezeRealtimeNoiseSeed = false; |
| 54 | sampleUI.StablePlanesActiveCount = 1; |
| 55 | sampleUI.AllowPrimarySurfaceReplacement = false; |
| 56 | sampleUI.RealtimeDiffuseBounceCount = sampleUI.ReferenceDiffuseBounceCount; |
| 57 | sampleUI.RealtimeFireflyFilterEnabled = false; |
| 58 | sampleUI.ReferenceFireflyFilterEnabled = false; |
| 59 | //sampleUI.EnableRussianRoulette = false; |
| 60 | //sampleUI.BounceCount = 1; |
| 61 | #endif |
| 62 | } |
| 63 | |
| 64 | // This disables... |
| 65 | // * ReSTIR DI & ReSTIR GI |
| 66 | // * AutoExposure |
| 67 | // * Stable Planes (set to 1) |
| 68 | // ...and increases brute force sampling - useful for denoiser tuning as it removes temporal issues and prevents stable planes from hiding issues. |
| 69 | // Once denoiser works well, try enabling things one by one (and reducing NEE & global samples back to 1) |
| 70 | if (RTXPT_LOCAL_CONFIG_ID_STRING == "DENOISER_TUNING") |
| 71 | { |
| 72 | sampleUI.RealtimeMode = true; |
| 73 | sampleUI.UseReSTIRDI = false; // avoid any temporal issues from DI |
| 74 | sampleUI.UseReSTIRGI = false; // avoid any temporal issues from GI |
| 75 | sampleUI.ToneMappingParams.autoExposure = false; // for stable before/after image comparisons |
| 76 | sampleUI.StablePlanesActiveCount = 1; // disable SPs - we want as good raw denoising as possible without SPs hiding any issues |
| 77 | sampleUI.RealtimeSamplesPerPixel = 2; // boost global samples |
| 78 | sampleUI.NEEType = 1; // avoid any temporal issues from ReGIR (due to presampling + multiple full local samples) |
| 79 | sampleUI.RealtimeAA = 1; |
| 80 | } |
| 81 | |
| 82 | if (RTXPT_LOCAL_CONFIG_ID_STRING == "ENVMAP_ONLY_TESTING") |
| 83 | { |
| 84 | sampleUI.UseReSTIRDI = false; |
| 85 | sampleUI.UseReSTIRGI = false; |
| 86 | sampleUI.ToneMappingParams.autoExposure = false; |
| 87 | sampleUI.RealtimeAA = 0; |
| 88 | sampleUI.StandaloneDenoiser = false; |
| 89 | //sampleUI.ToneMappingParams.exposureCompensation = 5.2f; |
| 90 | sampleUI.EnableAnimations = false; |
| 91 | sampleUI.ReferenceFireflyFilterEnabled = false; |
| 92 | |
| 93 | for (int i = 0; sampleUI.TogglableNodes != nullptr && i < sampleUI.TogglableNodes->size(); i++) |
| 94 | { |
| 95 | TogglableNode & node = (*sampleUI.TogglableNodes)[i]; |
| 96 | if (node.UIName == "Ceiling") |
| 97 | node.SetSelected(false); |
| 98 | } |
| 99 | |
| 100 | sampleUI.RealtimeMode = false; |
nothing calls this directly
no test coverage detected