chore(imgui): change size of histogram

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-03-17 11:26:14 -05:00
parent aeefff86f8
commit a6a9e3ac72
1 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ const gba_height = @import("core/ppu.zig").height;
const log = std.log.scoped(.Imgui); const log = std.log.scoped(.Imgui);
// TODO: Document how I decided on this value (I forgot 😅) // two seconds worth of fps values into the past
const histogram_len = 0x400; const histogram_len = 0x80;
/// Immediate-Mode GUI State /// Immediate-Mode GUI State
pub const State = struct { pub const State = struct {
@ -130,7 +130,7 @@ pub fn draw(state: *State, tex_id: GLuint, cpu: *Arm7tdmi) void {
defer zgui.end(); defer zgui.end();
const tmp = blk: { const tmp = blk: {
var buf: [0x400]u32 = undefined; var buf: [histogram_len]u32 = undefined;
const len = state.fps_hist.copy(&buf); const len = state.fps_hist.copy(&buf);
break :blk .{ buf, len }; break :blk .{ buf, len };