History

Exposing the gpu RangeTimer counter for the AO effect

samcake committed 10 years ago

Commit 93c7c181 parent 10de1ac9 files · +42 −13Browse files

Showing the changes to libraries/render-utils/src/RenderScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

libraries/render-utils/src/RenderScriptingInterface.cpp+4−0
@@ -49,4 +49,8 @@ void RenderScriptingInterface::setItemCounts(const render::RenderContext::ItemsC · 48 unmodified lines
49 _opaque->setCounts(items.opaque);49 _opaque->setCounts(items.opaque);
50 _transparent->setCounts(items.transparent);50 _transparent->setCounts(items.transparent);
51 _overlay3D->setCounts(items.overlay3D);51 _overlay3D->setCounts(items.overlay3D);
52}
53
54void RenderScriptingInterface::setJobGPUTimes(double aoTime) {
55 _ambientOcclusion->gpuTime = aoTime;
52}56}