-
Notifications
You must be signed in to change notification settings - Fork 21
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
improvement: avoid stalling rendering by adding asynchronous picking #2191
Conversation
There were failures in the examples workflow. This usually means a visual regression test has failed. Image diffs for visual tests can be downloaded as an artifact here. If there are no artifacts there's an error somewhere else in the examples workflow. If you have made intentional changes you can update the image snapshots by running |
There were failures in the examples workflow. This usually means a visual regression test has failed. Image diffs for visual tests can be downloaded as an artifact here. If there are no artifacts there's an error somewhere else in the examples workflow. If you have made intentional changes you can update the image snapshots by running |
There were failures in the examples workflow. This usually means a visual regression test has failed. Image diffs for visual tests can be downloaded as an artifact here. If there are no artifacts there's an error somewhere else in the examples workflow. If you have made intentional changes you can update the image snapshots by running |
Codecov Report
@@ Coverage Diff @@
## master #2191 +/- ##
==========================================
- Coverage 71.01% 70.73% -0.29%
==========================================
Files 254 255 +1
Lines 10826 10879 +53
Branches 1407 1415 +8
==========================================
+ Hits 7688 7695 +7
- Misses 2979 3021 +42
- Partials 159 163 +4
|
📙 Documentation preview is available from |
Not really. It won't feel very different in most cases as it only helps when GPU has a lot of work to do. This helps in those situations by yielding control back to main thread so e.g. UI can be updated before picking results are ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* chore: bump reveal version 3.x doc (#2231) * chore: bump reveal version 3.x doc * Updated 3.x docs Co-authored-by: Savokr <savelii.novikov@cognite.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency @cognite/sdk to v7.6.2 (#2220) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency @cognite/sdk to v7.7.0 (#2232) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency three to v0.141.0 (#2162) * fix(deps): update dependency three to v0.141.0 * fix: undo documentation three bump * chore: bump three for examples Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christopher Tannum <christopher.tannum@cognite.com> * refactor: port core package to api package (#2192) * chore: move file type mocks to test utilities * refactor: remove unused types * refactor: move all internal export to root * refactor: port core to new api package * fix: restore build * fix: ignore typing error from geomap * fix: restore tests Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix(deps): update dependency three to v0.141.0 (#2234) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * improvement: avoid stalling rendering by adding asynchronous picking (#2191) * fix: backport threejs for documentation to fix v1 doc (#2237) * chore(deps): update dependency gl to v5.0.3 (#2238) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * test: added test for Cognite3dViewer.dispose() (#2141) Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * improvement: hide/show HTML overlay elements (#2240) * Added API to show/hide HTMLOverlay elements Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency lint-staged to v13.0.3 (#2241) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: mobile default settings should not include ssao, add iPad fix (#2239) Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: in-front objects incorrectly blending with background (#2248) * fix: in-front objects now incorrectly blending * chore: update visual tests * chore: bump to Webpack 5 (#2244) * feat: migrate examples to webpack-5 * improvement: simplify and de-deprecate config-overrides * feat: upgrade to webpack 5 in viewer * fix: correct watchOptions.ignored field * fix: visual tests in examples * feat: update webpack config for example apps * chore: add temporary entrypoint+dependency in webpack conf * fix: make examples correctly pick up three js * fix: replace react-rewired stuff with own wepback config * improvement: add log of which visual test is running * fix: use better OpenGL backend in puppeteer * test: update visual test images * fix: fix test images after updating GPU backend * improvement: simplify viewer webpack config * chore: lint fix * fix: add environment variable for production build * feat: also serve content from examples/public * fix: try backporting pupeteer webgl backend for fixing CI tests * chore: attempt to build reveal in prod for documentation * chore: remove unused variable and update label * chore: update documentation yarn.lock * fix: restore tests from wrong merge * fix: update visual tests after merge... again... Co-authored-by: Håkon Flatval <hakon.flatval@cognite.com> * chore(deps): update dependency ts-loader to v9.3.1 (#2249) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency typedoc-plugin-markdown to v3.13.1 (#2247) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency core-js to v3.23.3 (#2243) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update typescript-eslint monorepo to v5.30.0 (#2246) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency eslint-plugin-prettier to v4.1.0 (#2245) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: improper linking of viewer into examples (#2252) * fix: elements position in HTMLOverlay when visibility is changed from hide to show (#2251) * Fixed elements position, after unhiding the elements from hidden state Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v16.11.42 (#2253) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency eslint-plugin-prettier to v4.2.1 (#2255) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency webpack-dev-server to v4.9.3 (#2254) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: incorrect node transform override on certain boundary conditions (#2256) * refactor: convert transform override texture to floating point data texture * refactor: convert transform override index pointer texture to floating point data texture * fix: reallocating override texture adding wrong available matrix indices * chore: add visual test snap * fix: change obsolete threejs getInverse to repair example * chore: remove unused float packing shader utility * refactor: remove magic number Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: sector repository gracefully handle sectors loader errors (#2257) * chore(deps): update dependency nock to v13.2.8 (#2258) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency typedoc-plugin-markdown to v3.13.2 (#2259) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Christopher J. Tannum <christopher.tannum@cognite.com> Co-authored-by: Savokr <savelii.novikov@cognite.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lars Moastuen <lars.moastuen@cognite.com> Co-authored-by: Pramod S <87521752+pramodcog@users.noreply.github.com>
* chore: bump reveal version 3.x doc (#2231) * chore: bump reveal version 3.x doc * Updated 3.x docs Co-authored-by: Savokr <savelii.novikov@cognite.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency @cognite/sdk to v7.6.2 (#2220) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency @cognite/sdk to v7.7.0 (#2232) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency three to v0.141.0 (#2162) * fix(deps): update dependency three to v0.141.0 * fix: undo documentation three bump * chore: bump three for examples Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Christopher Tannum <christopher.tannum@cognite.com> * refactor: port core package to api package (#2192) * chore: move file type mocks to test utilities * refactor: remove unused types * refactor: move all internal export to root * refactor: port core to new api package * fix: restore build * fix: ignore typing error from geomap * fix: restore tests Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix(deps): update dependency three to v0.141.0 (#2234) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * improvement: avoid stalling rendering by adding asynchronous picking (#2191) * fix: backport threejs for documentation to fix v1 doc (#2237) * chore(deps): update dependency gl to v5.0.3 (#2238) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * test: added test for Cognite3dViewer.dispose() (#2141) Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * improvement: hide/show HTML overlay elements (#2240) * Added API to show/hide HTMLOverlay elements Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency lint-staged to v13.0.3 (#2241) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: mobile default settings should not include ssao, add iPad fix (#2239) Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: in-front objects incorrectly blending with background (#2248) * fix: in-front objects now incorrectly blending * chore: update visual tests * chore: bump to Webpack 5 (#2244) * feat: migrate examples to webpack-5 * improvement: simplify and de-deprecate config-overrides * feat: upgrade to webpack 5 in viewer * fix: correct watchOptions.ignored field * fix: visual tests in examples * feat: update webpack config for example apps * chore: add temporary entrypoint+dependency in webpack conf * fix: make examples correctly pick up three js * fix: replace react-rewired stuff with own wepback config * improvement: add log of which visual test is running * fix: use better OpenGL backend in puppeteer * test: update visual test images * fix: fix test images after updating GPU backend * improvement: simplify viewer webpack config * chore: lint fix * fix: add environment variable for production build * feat: also serve content from examples/public * fix: try backporting pupeteer webgl backend for fixing CI tests * chore: attempt to build reveal in prod for documentation * chore: remove unused variable and update label * chore: update documentation yarn.lock * fix: restore tests from wrong merge * fix: update visual tests after merge... again... Co-authored-by: Håkon Flatval <hakon.flatval@cognite.com> * chore(deps): update dependency ts-loader to v9.3.1 (#2249) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency typedoc-plugin-markdown to v3.13.1 (#2247) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency core-js to v3.23.3 (#2243) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update typescript-eslint monorepo to v5.30.0 (#2246) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency eslint-plugin-prettier to v4.1.0 (#2245) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: improper linking of viewer into examples (#2252) * fix: elements position in HTMLOverlay when visibility is changed from hide to show (#2251) * Fixed elements position, after unhiding the elements from hidden state Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency @types/node to v16.11.42 (#2253) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency eslint-plugin-prettier to v4.2.1 (#2255) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency webpack-dev-server to v4.9.3 (#2254) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: incorrect node transform override on certain boundary conditions (#2256) * refactor: convert transform override texture to floating point data texture * refactor: convert transform override index pointer texture to floating point data texture * fix: reallocating override texture adding wrong available matrix indices * chore: add visual test snap * fix: change obsolete threejs getInverse to repair example * chore: remove unused float packing shader utility * refactor: remove magic number Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: sector repository gracefully handle sectors loader errors (#2257) * chore(deps): update dependency nock to v13.2.8 (#2258) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * chore(deps): update dependency typedoc-plugin-markdown to v3.13.2 (#2259) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> * fix: manually loop unroll in shader to improve performance (#2265) * improvement: better error message when adding model fails (#2266) * chore(deps): update dependency jest to v28 (#2088) * chore(deps): update dependency jest to v28 * chore: fix broken github actions for preview docs comment on Github (#2276) * chore: fix broken github actions for preview docs comment on Github * Use GitHub CLI * Replace action task with Github CLI * Checkout to provide con * Use correct Ruby * Go for something that works * Use of forked comment-on-pr * Use our own fork with release tag * lint Co-authored-by: Savelii Novikov <kvaka2000@gmail.com> Co-authored-by: Christopher J. Tannum <christopher.tannum@cognite.com> Co-authored-by: Savokr <savelii.novikov@cognite.com> Co-authored-by: cognite-bulldozer[bot] <51074376+cognite-bulldozer[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lars Moastuen <lars.moastuen@cognite.com> Co-authored-by: Pramod S <87521752+pramodcog@users.noreply.github.com> Co-authored-by: Savelii Novikov <kvaka2000@gmail.com>
Description
Avoid blocking main thread when doing intersection tests to reduce "staggering" when doing picking. Also fixed a typo in PR template.
Checklist:
Here is a checklist that should completed before merging this given feature.
Any shortcomings from the items below should be explained and detailed within the contents of this PR.
Unit test not added. Spent some time trying, but could not create a sensible test that actually tested anything substantial.
Tested Chrome, Safari, Chrome Canary, iOS Safari.