-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat: bring back WebGPU #20812
feat: bring back WebGPU #20812
Conversation
does this not impact startup time anymore ? |
Linking this PR for context: servo/core-foundation-rs#608 |
if it impacts startup time then it should be put behind a flag, if this helps. otherwise everything will slowdown including |
We are working on reducing the startup time. A flag would not help. Also, the startup time originally was increased by 3ms, and now is at 1ms increase, and we are working on further reducing it. |
@crowlKats What is missing from wgpu, exactly? |
@chances due to our setup with the wgpu repo, we require the js & rust code to be pulled from a commit that is a release of wgpu. |
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.
Added many suggestions related to inspect 🙇
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
Co-authored-by: Kenta Moriuchi <[email protected]> Signed-off-by: Leo Kettmeir <[email protected]>
# Conflicts: # Cargo.lock # Cargo.toml # cli/js/40_testing.js # tools/README.md
This fixes #21514, feel free to update the description |
@crowlKats can you provide start up time benchmarks? Also max RSS for a blank file? |
# Conflicts: # Cargo.lock # Cargo.toml
On my machine:
|
/bench startup_hello_world,startup_nop_empty,startup_nop_trivial |
startup_hello_world
startup_nop_empty
startup_nop_trivial
start: id: server: |
Comparing to deno 1.38.5 on my machine after a clean && build I see no impact:
|
|
||
let isCI: boolean; | ||
try { | ||
isCI = (Deno.env.get("CI")?.length ?? 0) > 0; |
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.
This is 4th place we define this env var :) we should move it to test_util.ts
in a follow up. Can you handle that @crowlKats?
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.
sure
gpu: { | ||
configurable: true, | ||
enumerable: true, | ||
get() { | ||
webidl.assertBranded(this, NavigatorPrototype); | ||
loadWebGPU(); | ||
return webgpu.gpu; | ||
}, | ||
}, |
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.
What about set()
? I think on the web one can override this value
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.
nope, not overwritable, however all the navigator getters should have no-op setters. I'll fix that up in a follow up with tests.
Nice work Leo (and the whole Deno team). Excited to see this brought back into Deno. |
Fixes #21514