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

Examples: Fix WebGPU logarithmic depth buffer demo. #28249

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 1, 2024

Related issue: #27243 (comment)

Description

This PR fixes webgpu_camera_logarithmicdepthbuffer by using a single global animation loop instead of setAnimationLoop() pre renderer. The previous setup lead to a doubled frame rate.

@Mugen87
Copy link
Collaborator Author

Mugen87 commented May 1, 2024

For testing: https://rawcdn.githack.com/Mugen87/three.js/dev1/examples/webgpu_camera_logarithmicdepthbuffer.html

For comparison, current prod: https://threejs.org/examples/webgpu_camera_logarithmicdepthbuffer

@Mugen87 Mugen87 added this to the r165 milestone May 1, 2024
@sunag sunag merged commit 6d90513 into mrdoob:dev May 1, 2024
7 of 11 checks passed
@Mugen87 Mugen87 changed the title Examples: Fix WebGPU logarithmic detph buffer demo. Examples: Fix WebGPU logarithmic depth buffer demo. May 3, 2024
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.

2 participants