Skip to content

Commit

Permalink
Async cuda execution and optix denoiser (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
xelatihy authored Mar 8, 2022
1 parent 63c4db1 commit 668b1c6
Show file tree
Hide file tree
Showing 8 changed files with 604 additions and 387 deletions.
8 changes: 4 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"YOCTO_APPS": "ON",
"YOCTO_EMBREE": "OFF",
"YOCTO_DENOISE": "OFF",
"YOCTO_EMBREE": "ON",
"YOCTO_DENOISE": "ON",
"YOCTO_OPENGL": "ON",
"YOCTO_CUDA": "ON"
},
Expand All @@ -104,8 +104,8 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"YOCTO_APPS": "ON",
"YOCTO_EMBREE": "OFF",
"YOCTO_DENOISE": "OFF",
"YOCTO_EMBREE": "ON",
"YOCTO_DENOISE": "ON",
"YOCTO_OPENGL": "ON",
"YOCTO_CUDA": "ON"
},
Expand Down
8 changes: 4 additions & 4 deletions apps/ycutrace/ycutrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ void run_render(const render_params& params_) {

// upload scene to the gpu
timer = simple_timer{};
auto cuscene = make_cutrace_scene(scene, params__);
auto cuscene = make_cutrace_scene(context, scene, params__);
print_info("upload scene: {}", elapsed_formatted(timer));

// build bvh
timer = simple_timer{};
auto bvh = make_cutrace_bvh(context, cuscene, scene, params__);
auto bvh = make_cutrace_bvh(context, cuscene, params__);
print_info("build bvh: {}", elapsed_formatted(timer));

// init lights
auto lights = make_cutrace_lights(scene, params__);
auto lights = make_cutrace_lights(context, scene, params__);

// state
auto state = make_cutrace_state(scene, params__);
auto state = make_cutrace_state(context, scene, params__);

// render
timer = simple_timer{};
Expand Down
Loading

0 comments on commit 668b1c6

Please sign in to comment.