Skip to content

Commit

Permalink
Merge pull request #33 from davidmatter/patch-1
Browse files Browse the repository at this point in the history
Make frame rate / refresh interval configurable
  • Loading branch information
docelic committed Feb 1, 2024
2 parents 3acf171 + fa1b885 commit 524785a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen_rendering.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Crysterm

@render_flag : Atomic(UInt8) = Atomic.new 0u8
@render_channel : Channel(Bool) = Channel(Bool).new
@interval : Float64 = 1/29
property interval : Float64 = 1/29

def schedule_render
_old, succeeded = @render_flag.compare_and_set 0, 1
Expand Down

0 comments on commit 524785a

Please sign in to comment.