Repository navigation
webgl: Clear the drawing buffer when preserveDrawingBuffer is false. - #24386
Conversation
|
@bors-servo try=wpt |
webgl: Clear the drawing buffer when preserveDrawingBuffer is false. This adds an explicit clear operation to a webgl canvas when the preserveDrawingBuffer attribute is false when creating the context. Because we're not using double buffering this may end up making some demos worse (ie. a clear operation at a random time while drawing a frame), but this problem is expected to go away when #24256 is fixed and we move to a multi-buffered frame setup. This change is important at this time because so many babylon.js demos rely on the engine clearing the frame, per the specification. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21132 - [x] There are tests for these changes
|
@paulrouget See if this change makes the babylon demos more bearable. |
|
💔 Test failed - linux-rel-css |
|
@bors-servo try=wpt |
|
🔒 Merge conflict |
8333962 to
7d51382
Compare
|
@bors-servo try=wpt |
webgl: Clear the drawing buffer when preserveDrawingBuffer is false. This adds an explicit clear operation to a webgl canvas when the preserveDrawingBuffer attribute is false when creating the context. Because we're not using double buffering this may end up making some demos worse (ie. a clear operation at a random time while drawing a frame), but this problem is expected to go away when #24256 is fixed and we move to a multi-buffered frame setup. This change is important at this time because so many babylon.js demos rely on the engine clearing the frame, per the specification. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21132 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24386) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-wpt |
|
☔ The latest upstream changes (presumably #24333) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Latest change in this PR vastly improve the babylonjs demos! |
|
The exception is the basic demo, where the mesh turns black. |
|
Also Mansion demo still have the trail. |
7d51382 to
cbad0cc
Compare
10c6840 to
d2b52c1
Compare
|
r? @nox The latest commit is largely cherry-picked from pcwalton@8ea6337, which is part of the ongoing WebGL rewrite that pcwalton is working on. It includes:
|
|
@bors-servo r+ |
|
📌 Commit d2b52c1 has been approved by |
webgl: Clear the drawing buffer when preserveDrawingBuffer is false. This adds an explicit clear operation to a webgl canvas when the preserveDrawingBuffer attribute is false when creating the context. Because we're not using double buffering this may end up making some demos worse (ie. a clear operation at a random time while drawing a frame), but this problem is expected to go away when #24256 is fixed and we move to a multi-buffered frame setup. This change is important at this time because so many babylon.js demos rely on the engine clearing the frame, per the specification. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21132 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24386) <!-- Reviewable:end -->
|
💔 Test failed - status-taskcluster |
|
I guess this is related 👀 ? angle smoketest failures |
|
Yep. Need to not send swapbuffer messages for no webgl canvases. |
…f the next frame.
d2b52c1 to
c53680b
Compare
|
@bors-servo r=nox |
|
📌 Commit c53680b has been approved by |
webgl: Clear the drawing buffer when preserveDrawingBuffer is false. This adds an explicit clear operation to a webgl canvas when the preserveDrawingBuffer attribute is false when creating the context. Because we're not using double buffering this may end up making some demos worse (ie. a clear operation at a random time while drawing a frame), but this problem is expected to go away when #24256 is fixed and we move to a multi-buffered frame setup. This change is important at this time because so many babylon.js demos rely on the engine clearing the frame, per the specification. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21132 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24386) <!-- Reviewable:end -->
|
☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster |
This adds an explicit clear operation to a webgl canvas when the preserveDrawingBuffer attribute is false when creating the context. Because we're not using double buffering this may end up making some demos worse (ie. a clear operation at a random time while drawing a frame), but this problem is expected to go away when #24256 is fixed and we move to a multi-buffered frame setup. This change is important at this time because so many babylon.js demos rely on the engine clearing the frame, per the specification.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is