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

Avoid unnecessary framebuffer clears. #94

Merged
merged 1 commit into from Nov 8, 2018
Merged

Conversation

mrdoob
Copy link
Collaborator

@mrdoob mrdoob commented Nov 8, 2018

Considering we're currently using a sphere as background which fills all the pixels there is no need to clear all the pixels.

@jsantell multi-16.html currently has issues with the camera.far a bit too tight and it's clipping the back of the background sphere. After this PR you'll see 2 astronauts in the top-right view. The second astronaut is from the previous rendered view.

@mrdoob mrdoob requested a review from jsantell November 8, 2018 21:58
Copy link
Contributor

@jsantell jsantell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! And yeah the camera.far needs extended in #82

@jsantell jsantell merged commit 6bab5e2 into master Nov 8, 2018
@jsantell jsantell deleted the optimize-clears branch November 8, 2018 22:37
jsantell added a commit that referenced this pull request Nov 11, 2018
change, and fixes a CachedGLTFLoader instance issue from it sharing
materials. Also disables a memory leak in background-image.
@jsantell jsantell mentioned this pull request Nov 11, 2018
jsantell added a commit that referenced this pull request Nov 12, 2018
change, and fixes a CachedGLTFLoader instance issue from it sharing
materials. Also disables a memory leak in background-image.
elalish pushed a commit to elalish/model-viewer that referenced this pull request Feb 4, 2020
…skysphere depth test

change, and fixes a CachedGLTFLoader instance issue from it sharing
materials. Also disables a memory leak in background-image.
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.

None yet

2 participants