-
Notifications
You must be signed in to change notification settings - Fork 244
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
Update wgpu (and ash, to avoid duplicate deps). #925
Conversation
This is incredible, the Why would we need to render text? Well, we don't, except... Look at what
So according to that, there's this "SCTK" ( But why would Not just that but some of them even posted to KDE venues proposing KDE also do the same (i.e. remove perfectly good WM-side window decorations and force everyone to use custom "CSD" ones).
EDIT2: ah, nice, rust-windowing/winit#2438 replaces the problematically-licensed dependency, and I switched |
8313bc1
to
5765a5f
Compare
ec034a9
to
9d875b5
Compare
present_mode: wgpu::PresentMode::Mailbox, | ||
present_mode: wgpu::PresentMode::AutoNoVsync, |
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 change was found by @fu5ha because macOS apparently doesn't support Mailbox
(did this ever work? I think main
might be broken too).
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.
Note that in the latest version of this PR, I've changed it to AutoVsync
because AutoNoVsync
was doing excessive redraws (thousands of frames per second).
All the stuff that was blocking this PR got merged, so does that mean that wgpu can be updated now? |
@ValorZard To be clear, none of my links above have changed status since I posted them. I was linking already merged PRs, some of them just to describe why certain changes where needed. The only blocker link AFAICT is there's no new release containing e.g. the You can also see it's still under the "Unreleased" section in the CHANGELOG right now:
We're basically waiting for For now, this update is not that important, at least not for Naga, until these issues are fixed:
We should just make it possible to use the raw SPIR-V (i.e. bypassing Naga entirely) until Naga improves. |
I've further updated
EDIT: the |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Got Android building (and WASM for that matter, but it doesn't work, I get a lot of errors I haven't looked into). This is what I can get out of I'm not sure what's wrong with the texture format, but the |
Opened a separate PR with the the addition I was using to test the WASM path: Which will have to wait until the massive problem with So this PR is truly unblocked, just needs a review now! |
For updating
wgpu
, these backwards-incompatible changes required fixes:The original hope was that with newer
wgpu
we'll get newernaga
which might fix the bug breaking the mouse shader (likely gfx-rs/naga#1977 - at least with SPIR-T) - but alas, no such luck(however, replacing the
for
loop with awhile
loop, and turning off SPIR-T withRUSTGPU_CODEGEN_ARGS=--no-spirt
works aroundnaga
bugs, and is enough for testing).I've also took the liberty of tweaking a couple dependency versions and (selectively) running
cargo update -p ...
to reduce duplicates inCargo.lock
, hence the larger amount of changes than might be expected (and the dependency on EmbarkStudios/ash-molten#71).One thing I have not figured out yet is why the mouse shader (with the locally applied workaround) doesn't render new frames except on input events only with X11 (Wayland is fine) - there may be a "power saving" setting that has changed default inwgpu
/winit
?EDIT: turns out that was us using
winit
as if we were a GUI application, in "only redraw after events" mode (not sure my workaround here is the best approach, but it works, and enabling VSync makes it acceptable).