-
Notifications
You must be signed in to change notification settings - Fork 142
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
Winit example taking very long to startup on android #289
Comments
Thanks for the report, and hopefully it's possible to resolve this. This is difficult to action, as I cannot reproduce this; startup is slow on my device, but shader compilation shouldn't be 10x slower on a ~40% slower CPU. In #288, I've proposed that we add some features to at least see if it's related to shader compilation. More information about where the time is going would be most welcome |
Is this blocked just by gfx-rs/wgpu#5319? Or is there something else left to improve to fix this? I also noticed very long startup times, both in the
In both cases, the renderer achieves butter-smooth 90 fps after the initial startup delay. (Thanks for the amazing work!) My use case involves rendering SVGs in a headless WGPU context to then be displayed in a homescreen widget. In this case, the vello renderer takes 55 s to start up. I have tried using both CPU and GPU shaders, with different values for Is there something I can help with analyzing? Logs Nothing Phone 2
I noticed the Logs Pixel 6
|
I'm hopeful that gfx-rs/wgpu#5508 will help a lot here. That's waiting on #560 . On my Pixel 6, that reduces the time to ~400ms, which is much better Another debugging step you can use is to connect up to https://developer.android.com/agi and see which parts of startup are taking however long. A note however that AGI can be slow to connect to an application - I needed to add a |
Can you try the latest main (since #575 has landed)? |
wow nice work it is so fast now vidoe.mp4 |
Going to close this now then. Thanks for the confirmation. If this is still an issue for you @MarcelStruckWO, let me know and we can make a Zulip thread or new issue to try and isolate the cause |
the phone is Samsung A52s 5G
build with android-29 and ndk 23.3
the build command was
cargo apk build -p with_winit --release
spoiler it took the app 80 seconds to show anything
WhatsApp.Video.2023-03-06.at.5.37.54.PM.mp4
The text was updated successfully, but these errors were encountered: