RenaudRohlinger / stats-gl

https://stats.renaudrohlinger.com/
177 stars 7 forks source link

Negative value on mac m3 with webgpu #8

Open Makio64 opened 5 months ago

Makio64 commented 5 months ago

I got negative value for the GPU time while checking last commits/examples update on threejs release164.

Screenshot 2024-04-26 at 14 09 33

I know webgpu is fast but this seems too fast haha :D

Device : macbook pro m3 max OS : MacOs latest Browser : Chrome latest

RenaudRohlinger commented 5 months ago

m3 max too stronk.

Unexpected indeed, will check.😁

Makio64 commented 2 months ago

Hi @RenaudRohlinger , do you need help to investigate this issue and calm down the m3 max ? :D

The calculation from here seem correct : https://webgpu.github.io/webgpu-samples/?sample=bundleCulling

Screenshot 2024-07-31 at 17 48 31
RenaudRohlinger commented 2 months ago

Even with my M1 Max Pro and iPhone 12, I am unable to reproduce this issue, nor the one described in https://github.com/RenaudRohlinger/stats-gl/issues/11.

Without encountering these bugs myself, it's difficult for me to diagnose and fix the issue. Could you clarify if the problem seems to originate from the Three.js side or the stats-gl side?

You can try logging the values with console.log(gl.info.render.timestamp) in the examples to confirm this. /cc @Makio64.

Makio64 commented 2 months ago

This console.log return me : gl is undefined I cloned three.js and changed the example of batch adding some log on stats.gl but its always null Your example https://stats.renaudrohlinger.com/ works as expected ( bellow screenshot )

Screenshot 2024-07-31 at 21 10 29