From e20fefdec6dc4f81307f34479cb8de18b29bbdbe Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Thu, 16 May 2024 14:06:55 +0800 Subject: [PATCH] default options --- src/integrators/coro_path.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/integrators/coro_path.cpp b/src/integrators/coro_path.cpp index 2b326ae..0af5d12 100644 --- a/src/integrators/coro_path.cpp +++ b/src/integrators/coro_path.cpp @@ -40,7 +40,7 @@ class CoroutinePathTracing final : public ProgressiveIntegrator { _max_depth{std::max(desc->property_uint_or_default("depth", 10u), 1u)}, _rr_depth{std::max(desc->property_uint_or_default("rr_depth", 0u), 0u)}, _rr_threshold{std::max(desc->property_float_or_default("rr_threshold", 0.95f), 0.05f)}, - _samples_per_pass{std::max(desc->property_uint_or_default("samples_per_pass", 16u), 1u)}, + _samples_per_pass{std::max(desc->property_uint_or_default("samples_per_pass", 64u), 1u)}, _scheduler{[&] { auto s = desc->property_string_or_default( "scheduler", luisa::lazy_construct([&] { @@ -68,7 +68,13 @@ class CoroutinePathTracing final : public ProgressiveIntegrator { break; } case Scheduler::Persistent: { - _persistent_config.shared_memory_soa = true; + _persistent_config = { + .thread_count = 128_k, + .block_size = 64, + .fetch_size = 8, + .shared_memory_soa = true, + .global_memory_ext = true, + }; if (desc->has_property("max_thread_count")) { _persistent_config.thread_count = std::max(desc->property_uint("max_thread_count"), 5_k); } if (desc->has_property("threads")) { _persistent_config.thread_count = std::max(desc->property_uint("threads"), 5_k); } if (desc->has_property("block_size")) { _persistent_config.block_size = std::max(desc->property_uint("block_size"), 32u); }