fix: propagate configured frame rate to widgets
This commit is contained in:
parent
87addc97de
commit
03cdcd260e
3 changed files with 3 additions and 4 deletions
|
@ -89,6 +89,7 @@ fn init(allocator: Allocator) !*Self {
|
|||
const frame_rate: usize = @intCast(tp.env.get().num("frame-rate"));
|
||||
if (frame_rate != 0)
|
||||
conf.frame_rate = frame_rate;
|
||||
tp.env.get().num_set("frame-rate", @intCast(conf.frame_rate));
|
||||
const frame_time = std.time.us_per_s / conf.frame_rate;
|
||||
const frame_clock = try tp.metronome.init(frame_time);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue