MCPcopy Create free account
hub / github.com/RenderKit/ospray / getProgress

Method getProgress

modules/multiDevice/MultiDeviceRenderTask.h:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75inline float MultiDeviceRenderTask::getProgress()
76{
77 // The frame is done when all the subdevices are done, so the total progress
78 // works out to be the average
79 float progress = 0.0;
80 for (size_t i = 0; i < fb->objects.size(); ++i) {
81 FrameBuffer *fbi = (FrameBuffer *)fb->objects[i];
82 progress += fbi->getCurrentProgress();
83 }
84 return progress / fb->objects.size();
85}
86
87inline float MultiDeviceRenderTask::getTaskDuration()
88{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
getCurrentProgressMethod · 0.45

Tested by

no test coverage detected