KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.2k stars 626 forks source link

HPP terrain tessellation sample reports wrong statistics #674

Open SaschaWillems opened 1 year ago

SaschaWillems commented 1 year ago

The terrain tessellations sample displays statistics using a pipeline statistics query:

image

The HPP version of that sample does the same, but displays wrong values:

image

When debugging, I can see the correct values in the HPP ones after getting the query pool results, but they seem to get lost between this and the display. I wasn't able to find out why.

Maybe you can take a look at this @asuessenbach?

asuessenbach commented 1 year ago

I'm sorry, but I can't repro this issue. The statistics look correct on my end. Maybe someone else can test this as well?

SaschaWillems commented 1 year ago

Thanks for testing this. I can actually also reproduce this on Android with my Pixel 4a. While the non hpp version displays proper statistics, the hpp one always shows the same (probably wrong) values.

SaschaWillems commented 10 months ago

As noted in #832 this issue is still present.

It only happens in the hpp version and for two completely different setups:

I expect a sync/timing problem, as it seems to be more visible with hight framertates. On another setup with an integrated Intel GPU where I can't get vsync to disable I always see correct values.

asuessenbach commented 10 months ago

As already noted, I can't repro this issue. If anybody else could check on his setup and report here?

SaschaWillems commented 10 months ago

Just to rule out anything related to my PC setup: I can also reproduce this on my Google Pixel 4a. It's actually even a bit different there: The HPP version of the sample always displays the same (wrong) values that never change, no matter where i look, whereas the non-HPP version works fine:

Screenshot_20231102-184022 Screenshot_20231102-183958

SaschaWillems commented 3 months ago

This is still happening for me, even with the recent change that limits gui updates.