Skip to content

Commit

Permalink
Decrease fps_max_unfocused from 20 to 10
Browse files Browse the repository at this point in the history
This used to be the default for android.
There's not much issues now with using a lower value, so a lower default on all platforms
is reasonable.
The only downside I know of is that if you re-focus the window, it can up till the
next client step until it goes back to normal fps, but 10 Hz feels fast enough.
  • Loading branch information
Desour committed Feb 15, 2025
1 parent 138111a commit 166e029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin/settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ fps_max (Maximum FPS) int 60 1 4294967295
vsync (VSync) bool false

# Maximum FPS when the window is not focused.
fps_max_unfocused (FPS when unfocused) int 20 1 4294967295
fps_max_unfocused (FPS when unfocused) int 10 1 4294967295

# View distance in nodes.
viewing_range (Viewing range) int 190 20 4000
Expand Down
2 changes: 1 addition & 1 deletion src/defaultsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void set_default_settings()
settings->setDefault("tooltip_show_delay", "400");
settings->setDefault("tooltip_append_itemname", "false");
settings->setDefault("fps_max", "60");
settings->setDefault("fps_max_unfocused", "20");
settings->setDefault("fps_max_unfocused", "10");
settings->setDefault("viewing_range", "190");
settings->setDefault("client_mesh_chunk", "1");
settings->setDefault("screen_w", "1024");
Expand Down

0 comments on commit 166e029

Please sign in to comment.