tracy icon indicating copy to clipboard operation
tracy copied to clipboard

CPU and GPU zone inconsistency

Open erieaton-amd opened this issue 5 months ago • 2 comments

In the code, there seem to be a lot of similarity between CPU and GPU zones, except they use separate code paths. But GPU zones are more limited, you can't bring up a statistics window for them like you can with CPU zones. Do you think it would be feasible to unify the zone types code more to reduce duplication and ensure a consistent feature set?

erieaton-amd avatar Jul 22 '25 23:07 erieaton-amd

Unification is not really an option, as that would waste the memory. Consider the cost of enlarging the ZoneEvent struct just by one byte when there's a billion zones in the trace.

Image

wolfpld avatar Jul 22 '25 23:07 wolfpld

Would it work to extend ZoneExtra instead?

erieaton-amd avatar Jul 28 '25 21:07 erieaton-amd