summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhinull_p_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2022-06-10 12:08:54 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2022-07-05 13:04:09 +0200
commit6ec339c4844125ba2f1330d07c520437ae73ec0b (patch)
tree0a451d7557303a2bd93f4d401e06decd1f2b7e4c /src/gui/rhi/qrhinull_p_p.h
parenta09e518f6589fff7789ad7224badf24593240711 (diff)
rhi: Keep track of pipeline creation times
Make our QRhiMemAllocStats struct a bit more generic, drop the memory allocation part in the naming, and use the same getter and struct for reporting some important timings. (we are free to rename for now, there are no users in other modules yet) The time spent in graphics (or compute) pipeline creation has a special relevance in particular with the modern APIs (as it is the single biggest potentially time consuming blocking operation), but also highly interesting with others like D3D11 simply because that's where we do the expensive source-to-intermediate compilation is HLSL source is provided. In order to see the effects of the various caching mechanisms (of which there can be confusingly many, on multiple levels), the ability to see how much time we spent on pipeline creation e.g. until we render the first view of an application can be pretty essential. Task-number: QTBUG-103802 Change-Id: I85dd056a39db7e6b25fb1f9d02e4c94298d22b41 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhinull_p_p.h')
-rw-r--r--src/gui/rhi/qrhinull_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhinull_p_p.h b/src/gui/rhi/qrhinull_p_p.h
index 7c2703cada..a6ec4752c5 100644
--- a/src/gui/rhi/qrhinull_p_p.h
+++ b/src/gui/rhi/qrhinull_p_p.h
@@ -273,7 +273,7 @@ public:
int resourceLimit(QRhi::ResourceLimit limit) const override;
const QRhiNativeHandles *nativeHandles() override;
QRhiDriverInfo driverInfo() const override;
- QRhiMemAllocStats graphicsMemoryAllocationStatistics() override;
+ QRhiStats statistics() override;
bool makeThreadLocalNativeContextCurrent() override;
void releaseCachedResources() override;
bool isDeviceLost() const override;