提交 971a4bc2 编写于 作者: M Matt Pharr

Stop using monotonic_buffer_resource for big allocs in WavefrontIntegrator constructor

上级 e3be2eb5
......@@ -80,9 +80,7 @@ WavefrontPathIntegrator::WavefrontPathIntegrator(
pstd::pmr::memory_resource *memoryResource, BasicScene &scene)
: memoryResource(memoryResource) {
ThreadLocal<Allocator> threadAllocators([memoryResource]() {
pstd::pmr::monotonic_buffer_resource *resource =
new pstd::pmr::monotonic_buffer_resource(1024 * 1024, memoryResource);
return Allocator(resource);
return Allocator(memoryResource);
});
Allocator alloc = threadAllocators.Get();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册