Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeEngine captureGPUFrameTime + getGPUFrameTimeCounter #16159

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

ryantrem
Copy link
Member

@ryantrem ryantrem commented Feb 7, 2025

This change overrides startTimeQuery and endTimeQuery in NativeEngine such that captureGPUFrameTime and getGPUFrameTimeCounter work. They do so by calling the new populateFrameStats function on the native side of NativeEngine.
Corresponding BN change: BabylonJS/BabylonNative#1458

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 7, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 7, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@ryantrem ryantrem requested review from bghgary and sebavan February 7, 2025 22:08
@bjsplat
Copy link
Collaborator

bjsplat commented Feb 7, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 7, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 7, 2025

packages/dev/core/src/Engines/nativeEngine.ts Outdated Show resolved Hide resolved
@sebavan sebavan enabled auto-merge (squash) February 7, 2025 23:54
@bjsplat
Copy link
Collaborator

bjsplat commented Feb 8, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 8, 2025

@sebavan sebavan merged commit 4d9cbe5 into BabylonJS:master Feb 8, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants