Skip to content
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

Windows demo gpu bug #2387

Open
1 of 2 tasks
lihuayu315 opened this issue Oct 31, 2024 · 2 comments
Open
1 of 2 tasks

Windows demo gpu bug #2387

lihuayu315 opened this issue Oct 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lihuayu315
Copy link

lihuayu315 commented Oct 31, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm currently using the Windows platform of this project with the built - in webview function. However, I've found that even when the web page is static, the program still consumes a lot of GPU resources. At present, I'm in a multi - screen setup. It's consuming 3D resources on a 4K screen and copy resources on a 2K screen. I want to know what's causing this problem
20241031-135603
20241031-135643

Expected Behavior

I think the GPU resources shouldn't be consumed when the web page is static.

Steps with code example to reproduce

none

Stacktrace/Logs

none

Flutter version

v3.24.4

Operating System, Device-specific and/or Tool

Version: Windows 11 Professional Workstation Edition
Version number: 23H2
Installation date: November 16, 2023
Operating system version: 22631.4391

Plugin version

v6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@lihuayu315 lihuayu315 added the bug Something isn't working label Oct 31, 2024
@lihuayu315 lihuayu315 changed the title Windows demo cause more cpu Windows demo cpu bug Oct 31, 2024
@lihuayu315 lihuayu315 changed the title Windows demo cpu bug Windows demo gpu bug Nov 5, 2024
@albe-jj
Copy link

albe-jj commented Nov 12, 2024

I'm having the same issue of an unexpectedly high GPU usage.
I noticed that also another flutter library webview-windows has a similar issue jnschulze/flutter-webview-windows#308

@pichillilorenzo
Copy link
Owner

As Microsoft WebView2 Windows API doesn't currently have an offscreen rendering API, it uses the same implementation of webview_windows plugin, otherwise, we won't have a way to make it work on Flutter.

When WebView2 will have an offscreen rendering API, this issue will be resolved.
Here is the issue about it on the official WebView2 repo: MicrosoftEdge/WebView2Feedback#20, MicrosoftEdge/WebView2Feedback#547

Unfortunately, 4 years have passed but this feature has not yet been implemented by the Microsoft WebView2 team.

Also, there are some other issues with the current implementation: MicrosoftEdge/WebView2Feedback#4944

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants