Skip to content

Commit

Permalink
config: more explicit defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Dec 8, 2024
1 parent 0356228 commit b2b23e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/config.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ pub:
pub:
update_rate f64 = 60.0
update_multiplicity u8 = 1
lock_framerate bool
time_history_count u8 = 4
vsync VSync
msaa int = 4
lock_framerate bool // false
time_history_count u8 = 4
vsync VSync = .on
msaa int = 4
}

fonts struct {
Expand Down
1 change: 1 addition & 0 deletions lib/window.sdl.v
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ pub fn (mut w Window) render_init() {
render_config := w.config.render
// update_rate := f64(59.95) // TODO
// update_rate := f64(120)
// update_rate := f64(240)
update_rate := render_config.update_rate // f64(60)
w.state.update_rate = update_rate // f64(60)
w.state.update_multiplicity = render_config.update_multiplicity // int(1)
Expand Down

0 comments on commit b2b23e9

Please sign in to comment.