Skip to content

Commit

Permalink
docs: update OSR max FPS number (electron#27060)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Dec 17, 2020
1 parent 2717a48 commit f5deaed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api/web-contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ Returns `Boolean` - If *offscreen rendering* is enabled returns whether it is cu
* `fps` Integer

If *offscreen rendering* is enabled sets the frame rate to the specified number.
Only values between 1 and 60 are accepted.
Only values between 1 and 240 are accepted.

#### `contents.getFrameRate()`

Expand Down Expand Up @@ -1858,7 +1858,7 @@ The zoom factor is the zoom percent divided by 100, so 300% = 3.0.
#### `contents.frameRate`

An `Integer` property that sets the frame rate of the web contents to the specified number.
Only values between 1 and 60 are accepted.
Only values between 1 and 240 are accepted.

Only applicable if *offscreen rendering* is enabled.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/offscreen-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Two modes of rendering can be used and only the dirty area is passed in the
`'paint'` event to be more efficient. The rendering can be stopped, continued
and the frame rate can be set. The specified frame rate is a top limit value,
when there is nothing happening on a webpage, no frames are generated. The
maximum frame rate is 60, because above that there is no benefit, only
maximum frame rate is 240, because above that there is no benefit, only
performance loss.

**Note:** An offscreen window is always created as a [Frameless Window](../api/frameless-window.md).
Expand Down

0 comments on commit f5deaed

Please sign in to comment.