-
-
Notifications
You must be signed in to change notification settings - Fork 874
Description
I've found it frustrating to integrate GPU zones in my application. Tracy wants to be very involved in the details of how GPU zones are constructed, and because of this, the interface is quite complex:
- A Tracy GPU context must be constructed
- Start/end queries must be recorded
- Query times must be submitted later
- Calibration may or may not be done
I would much rather prefer a simpler API. A single function, something like TracyManualZone(track_name, zone_name, start_time, end_time)
. For my use cases, this would be just as good as the GPU zones, with significantly less integration complexity (since my engine already has all the infrastructure to collect calibrated GPU timestamps -- I don't have to create an alternative just for Tracy, I can reuse all my existing infrastructure).
Furthermore, I can envision this catering to other use cases, where automatically captured CPU timestamps may be irrelevant, such as displaying events that happened on a remote server.