MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Add a setting for maximum FPS limit

Open
#3,045 4 comments 9 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description

Webview2 is a good target for web games because I've measured significantly lower input latency (time from mouse input to an update on screen) compared to Chrome and Electron apps.

The input latency can be be decreased even more with the --disable-frame-rate-limit additional browser argument but on many systems this slows down the application significantly, presumably because it's thrashing from the 1000s of updates it's doing per second. The optimization is small but noticeable when controlling a first person camera view with the mouse.

Describe the solution you'd like and alternatives you've considered

A setting that allows the FPS to exceed the monitor's refresh rate while still being capped to a maximum value through an additional browser arg or any kind of Webview2 setting API would be a great way to minimise latency input latency for web games.

This update frequency cannot be controlled from JavaScript because there is some kind of throttling mechanism with requestAnimationFrame which stops you from delaying updates until a later time. requestAnimationFrame's update frequency can only be controlled at a browser level and the current options are either the monitor's refresh rate or no limit at all.

I hope this can be considered but it's understandable if this is a problem with Chromium that can't be resolved by Webview2.

AB#42564118

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.