Page MenuHome

Fix T92601: Disable profiling when the profiler is deemed not active.
ClosedPublic

Authored by William Leeson (leesonw) on Nov 11 2021, 3:52 PM.

Details

Summary

Adds a method to profiler that can be used to check if it is active.
This is used to determine if stop_profiling and start_profiling
should be called.

patchJuans Scene UI 256 samplesJuans Scene bg 256 samplesjunkshop UIjunkshop bg
No patch6:16.594:05.372:08.481:59.7
D131874:12.153:57.362:07.251:58.16
D131854.11.183:54.742:07.441:58.03
D131904:12.393:55.422:07.621:58.68

UI - means rendered from within Blender
bg - means rendered from the command line using blender -b scene.blend -f 1

Diff Detail

Repository
rB Blender
Branch
deviceProfileCheck (branched from master)
Build Status
Buildable 18596
Build 18596: arc lint + arc unit

Event Timeline

William Leeson (leesonw) requested review of this revision.Nov 11 2021, 3:52 PM
William Leeson (leesonw) created this revision.

Some performance data on the three patches

patchJuans Scene UI 256 samplesJuans Scene bg 256 samplesjunkshop UIjunkshop bg
No patch6:16.594:05.372:08.481:59.7
D131874:12.153:57.362:07.251:58.16
D131854.11.183:54.742:07.441:58.03
D131904:12.393:55.422:07.621:58.68

UI - means rendered from within Blender
bg - means rendered from the command line using blender -b scene.blend -f 1

Sergey Sharybin (sergey) added inline comments.
intern/cycles/util/profiling.h
99

Pedantic: bool active() const;

This revision is now accepted and ready to land.Nov 11 2021, 4:16 PM

Let's go with this one and close the other patches.

William Leeson (leesonw) marked an inline comment as done.

Add const to active.

William Leeson (leesonw) retitled this revision from Disable profiling when the profiler is deemed not active. to Fixes T92601:Disable profiling when the profiler is deemed not active..Nov 11 2021, 4:38 PM
William Leeson (leesonw) retitled this revision from Fixes T92601:Disable profiling when the profiler is deemed not active. to Fix T92601: Disable profiling when the profiler is deemed not active..