| 73 | } |
| 74 | |
| 75 | inline 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 | |
| 87 | inline float MultiDeviceRenderTask::getTaskDuration() |
| 88 | { |
nothing calls this directly
no test coverage detected