From 8cd11b22d39d450da95290a5a2b8cd5b78990faf Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Fri, 6 Feb 2026 21:51:58 -0500 Subject: [PATCH] Update optcarrot Update optcarrot to https://github.com/mame/optcarrot/commit/9c88f5f752341087270b0e86e741d73f19e52369 --- benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb | 2 +- benchmarks/optcarrot/lib/optcarrot/ppu.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb b/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb index a428825d..4259e5e7 100644 --- a/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb +++ b/benchmarks/optcarrot/lib/optcarrot/driver/sixel_video.rb @@ -7,7 +7,7 @@ def init super @buff = "".b @line = "".b - @seq_setup = "\e[H\ePq" + @seq_setup = "\e[H\eP7q" print "\e[2J" @palette, colors = Driver.quantize_colors(@palette_rgb) diff --git a/benchmarks/optcarrot/lib/optcarrot/ppu.rb b/benchmarks/optcarrot/lib/optcarrot/ppu.rb index 1fb48408..17831ca6 100644 --- a/benchmarks/optcarrot/lib/optcarrot/ppu.rb +++ b/benchmarks/optcarrot/lib/optcarrot/ppu.rb @@ -471,7 +471,6 @@ def poke_2007(_addr, data) @palette_ram[addr ^ 0x10] = data @output_color[addr ^ 0x10] = final end - @output_bg_color = @palette_ram[0] & 0x3f else addr &= 0x3fff if addr >= 0x2000 @@ -891,7 +890,7 @@ def run def dispose @run = false - raise 'PPU Fiber should have finished' unless @fiber.resume == :done + raise 'PPU Fiber should have finished' unless @fiber.nil? || @fiber.resume == :done @fiber = nil end