Thanks to visit codestin.com
Credit goes to github.com

Skip to content

set canvas default fps as 60 #370

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

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fastplotlib/layouts/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def make_canvas_and_renderer(

if canvas is None:
Canvas = auto_determine_canvas()
canvas = Canvas()
canvas = Canvas(max_fps=60)

elif isinstance(canvas, str):
if canvas not in CANVAS_OPTIONS:
Expand All @@ -76,7 +76,7 @@ def make_canvas_and_renderer(
f"The {canvas} framework is not installed for using this canvas"
)
else:
canvas = CANVAS_OPTIONS_AVAILABLE[canvas]()
canvas = CANVAS_OPTIONS_AVAILABLE[canvas](max_fps=60)

elif not isinstance(canvas, (WgpuCanvasBase, Texture)):
raise ValueError(
Expand Down