1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
Lectem 6e619c094d Add new TRACY_ON_DEMAND_GPU_SYNC define
When using the tracy ON_DEMAND mode, it is ok in most cases to drop measurements and do a GPU clock synchronization (that may stall) during the first tracyCollect. This is not enabled by default in the CMakeLists for backward compatibility and because it may be a bit intrusive.
This commit also makes the OpenGL tracy TracyGpuZone* a tiny bit more efficient by not calling the threadlocal GetGpuCtx(). It is also more resilient if no context has been declared on this thread. This means that the application will not crash if a context was used on different threads even though declared only on one (thus GetGpuCtx().ptr == nullptr). Tracy does not support  this scenario, so on one hand this helps users by not crashing, on the other it is an error that is now silent.
2021-12-19 18:20:07 +01:00
..
2018-08-23 15:48:01 +02:00
2020-09-24 01:31:24 +02:00