rust_tracy_client icon indicating copy to clipboard operation
rust_tracy_client copied to clipboard

Frame images

Open colinmarc opened this issue 3 months ago • 0 comments

The PDF mentions an API (FrameImage) for sending screengrabs to the server. Is that something that's possible to support in the rust client?

It is possible to attach a screen capture of your application to any frame in the main frame set. This can help you see the context of what’s happening in various places in the trace. You need to implement retrieval of the image data from GPU by yourself. Images are sent using the FrameImage(image, width, height, offset, flip) macro, where image is a pointer to RGBA32 pixel data, width and height are the image dimensions, which must be divisible by 4, offset specifies how much frame lag was there for the current image (see chapter 3.3.3.1), and flip should be set, if the graphics API stores images upside-down33. The profiler copies the image data, so you don’t need to retain it

Thanks in advance!

colinmarc avatar Mar 14 '24 08:03 colinmarc