libctru v2.5.0
|
GSPGPU performance log entry. More...
#include <gspgpu.h>
Data Fields | |
u32 | lastDurationUs |
Duration of the last corresponding PICA200 operation (time between op is started and IRQ is received). | |
u32 | totalDurationUs |
Sum of lastDurationUs for the corresponding PICA200 operation. Can overflow. | |
GSPGPU performance log entry.
Use the lastDurationUs field when benchmarking single GPU operations, this is usally meant for 3D library writers.
Use the difference between two totalDurationUs when using a GPU library (e.g. citro3d), as there can be multiple GPU operations (e.g. P3D, PPF) per render pass, or per frame, and so on. Don't use totalDurationUs as-is (rather, take the difference as just described), because it can overflow.