-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRenderTimingInfo.h
More file actions
50 lines (40 loc) · 2.09 KB
/
Copy pathRenderTimingInfo.h
File metadata and controls
50 lines (40 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright (C) 2024: Arizona Board of Regents on Behalf of the University of Arizona
*/
/**
* @file RenderTimingInfo.h
* @brief Apache Strap-Down Pilotage Render timing info header file.
*
* @author ReliaSolve.
* @date November 14, 2024.
*/
#pragma once
#include <ASDP_Core_API.h>
namespace asdp {
namespace render {
/// @brief Data structure to hold timing information for helping with system tuning.
struct RenderTimingInfo
{
/// @brief Data structure to hold timing information for a single camera.
struct camera {
std::vector<std::chrono::steady_clock::time_point> frameBeginTimes; ///< The times for the begin frame message receipts.
std::vector<std::chrono::steady_clock::time_point> frameEndTimes; ///< The times for the end frame message receipts.
std::vector<std::chrono::steady_clock::time_point> textureTimes; ///< The times for texture fill complete.
/// The center time for each of the images used in a render frame.
std::vector<Time> centerRenderTimes;
};
std::vector<camera> cameras; ///< The timing information for each camera.
std::vector<std::chrono::steady_clock::time_point> depthComputeStartTimes; ///< The times for the start of depth computations.
std::vector<std::chrono::steady_clock::time_point> depthComputeEndTimes; ///< The times for the end of depth computations.
std::vector<std::chrono::steady_clock::time_point> depthStartTimes; ///< The times for the start of depth copies.
std::vector<std::chrono::steady_clock::time_point> depthEndTimes; ///< The times for the end of depth copies.
std::vector<std::chrono::steady_clock::time_point> renderStartTimes; ///< The times for the start of rendering.
std::vector<std::chrono::steady_clock::time_point> renderSubmitTimes; ///< The times for the render frame submission.
std::chrono::steady_clock::time_point startTime = std::chrono::steady_clock::now(); ///< The start time for the program.
void SetNumCameras(size_t numCameras)
{
cameras.resize(numCameras);
}
};
}
}