diff --git a/src/Gui.zig b/src/Gui.zig index 675e6fe..9740240 100644 --- a/src/Gui.zig +++ b/src/Gui.zig @@ -8,12 +8,12 @@ const Scheduler = @import("core/scheduler.zig").Scheduler; const FpsTracker = @import("core/util.zig").FpsTracker; const pitch = @import("core/ppu.zig").framebuf_pitch; +const scale = @import("core/emu.zig").win_scale; const emu = @import("core/emu.zig"); const asString = @import("core/util.zig").asString; const log = std.log.scoped(.GUI); -const scale = 4; const default_title: []const u8 = "ZBA"; window: *SDL.SDL_Window, diff --git a/src/core/emu.zig b/src/core/emu.zig index 4b4f1f1..0e32291 100644 --- a/src/core/emu.zig +++ b/src/core/emu.zig @@ -12,9 +12,11 @@ const Thread = std.Thread; const Atomic = std.atomic.Atomic; const Allocator = std.mem.Allocator; -const sync_audio = false; -const sync_video: RunKind = .UnlimitedFPS; -pub const cpu_logging = false; +// TODO: Move these to a TOML File +const sync_audio = true; // Enable Audio Sync +const sync_video: RunKind = .LimitedFPS; // Configure Video Sync +pub const win_scale = 3; // 1x, 2x, 3x, etc. Window Scaling +pub const cpu_logging = false; // Enable detailed CPU logging // 228 Lines which consist of 308 dots (which are 4 cycles long) const cycles_per_frame: u64 = 228 * (308 * 4); //280896