Instead of speculating about resource update batch pools, have a toggleable debug message that shows exactly what one needs to know. Set qt.rhi.rub to true to enable. Note that it is not a qCDebug since we do not want isEnabled() checks no matter how cheap on hot code paths. Rather, the state of the category is checked just once on QRhi::create(). As we want some output from QRhiBufferData too, this is static (setting the bool flag may not be entirely thread safe technically but we can live with it). In addition, harden size() and constData() in QRhiBufferData, although these d != null checks are a waste of time with the current implementation, but be safe. Remove the unused QT_RHI_MINIMIZE_POOLS environment variable. This is forgotten completely by now and serves no practical purpose. Those who want a proper release of all pools should call releaseCachedResources() (i.e. QQuickWindow::releaseResources()). Expand the comments as well. Change-Id: I4942cf7c3f2ecff47991e42e14c61b432f232170 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit cbab56fdcbff6965d2aafd0c00eebacb7809ceba)
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%