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

GPUStatsPanel: Prevent infinite loop when webgl context is lost #23990

Merged
merged 2 commits into from
May 5, 2022

Conversation

wmcmurray
Copy link
Contributor

Description

An infinite loop was created when the webgl context is lost because an unstoppable recursive call to requestAnimationFrame is done inside the GPUStatsPanel.startQuery method.

This PR will stop this recursive call when the context is lost.

@Mugen87 Mugen87 requested a review from gkjohnson May 2, 2022 08:20
@Mugen87 Mugen87 added this to the r141 milestone May 5, 2022
@Mugen87 Mugen87 merged commit c40d5eb into mrdoob:dev May 5, 2022
@mrdoob
Copy link
Owner

mrdoob commented May 6, 2022

Minor clean up: 410974a

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
…ob#23990)

* Prevent infinite loop when webgl context is lost

* Update GPUStatsPanel.js

Co-authored-by: Michael Herzog <[email protected]>
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