w23 / xash3d-fwgs

Vulkan Ray Tracing fork of Xash3D FWGS engine. Intended to be merged into master at some point in the future.
160 stars 16 forks source link

Combine cpu and gpu profiler into a single event stream #650

Open w23 opened 6 months ago

w23 commented 6 months ago

Currently CPU (profiler.h) and GPU (exposed in vk_combuf.h) profilers provide completely disjoint event streams. They are kind of fundamentally different:

But it might be still useful to combine them functionally, so that consuming these event is easy from a single "source of truth".

Also, embedding all profiler logic into profiler.h makes it extractable into its own "library".