mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-12 23:29:26 +00:00
Treat -1 as the invalid microsecond duration value, not 0
* Some functions can be so quick that they register as a duration of 0. This is expected and we should not end up omitting it when importing or exporting because we think it was missing. As a 64-bit value, losing a bit for signedness is not a problem.
This commit is contained in:
3 files changed
+4
-3
No files matched your search
@@ -217,8 +217,9 @@ conservative size estimate was used on creation to avoid seeking to fix-up the s
|
||||
|
||||
DOCUMENT(R"(The duration in microseconds that this chunk took. This is the time for the actual
|
||||
work, not the serialising.
|
||||
Since 0 is a possible value for this (for extremely fast calls), -1 is the invalid/not present value.
|
||||
)");
|
||||
uint64_t durationMicro = 0;
|
||||
int64_t durationMicro = -1;
|
||||
|
||||
DOCUMENT("The point in time when this chunk was recorded, in microseconds since program start.");
|
||||
uint64_t timestampMicro = 0;
|
||||
|
||||
Reference in new issue
Block a user