feat: minor performance improvements

This commit is contained in:
2022-03-18 09:41:06 -03:00
parent 3d61c0dba4
commit 1901a471e4
4 changed files with 39 additions and 41 deletions

View File

@@ -23,7 +23,7 @@ pub const FpsAverage = struct {
sample_count: u64,
pub fn init() Self {
return .{ .total = 0, .sample_count = 0 };
return .{ .total = 0, .sample_count = 1 };
}
pub fn add(self: *Self, sample: u64) void {