Изменён лимит частоты перерисовки

This commit is contained in:
2026-03-03 20:10:30 +03:00
parent 84c9a55ee5
commit 9a795c22f1

View File

@@ -116,6 +116,7 @@ fn redraw(self: *Canvas) !void {
}
self._last_redraw_time_ms = std.time.milliTimestamp();
self.frame_index += 1;
self.redraw_throttle_ms = @max(1, @as(u32, @intCast(self.render_engine.getStats().render_time_ns / std.time.ns_per_ms / 3)));
}
pub fn exampleReset(self: *Canvas) !void {