Skip to content

Avoid unnecessary framebuffer clears. - #94

Merged
jsantell merged 1 commit into
masterfrom
optimize-clears
Nov 8, 2018
Merged

jsantell merged 1 commit into
masterfrom
optimize-clears

Conversation

@mrdoob

@mrdoob mrdoob commented Nov 8, 2018

Copy link
Copy Markdown
Collaborator

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

@jsantell jsantell left a comment

Copy link
Copy Markdown
Contributor

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.

2 participants