From 3701236ca0f7af3e09be296812663e26c223fcfd Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Tue, 1 Oct 2019 06:41:38 +0900 Subject: [PATCH] v107.4 Shrink Pixel struct for ~1.75% speedup [Alcaro] --- bsnes/emulator/emulator.hpp | 2 +- bsnes/sfc/ppu-fast/ppu.hpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bsnes/emulator/emulator.hpp b/bsnes/emulator/emulator.hpp index b5b7f998..e83554a0 100644 --- a/bsnes/emulator/emulator.hpp +++ b/bsnes/emulator/emulator.hpp @@ -29,7 +29,7 @@ using namespace nall; namespace Emulator { static const string Name = "bsnes"; - static const string Version = "110.3"; + static const string Version = "110.4"; static const string Author = "byuu"; static const string License = "GPLv3"; static const string Website = "https://byuu.org"; diff --git a/bsnes/sfc/ppu-fast/ppu.hpp b/bsnes/sfc/ppu-fast/ppu.hpp index cc9139f2..65621d9d 100644 --- a/bsnes/sfc/ppu-fast/ppu.hpp +++ b/bsnes/sfc/ppu-fast/ppu.hpp @@ -40,8 +40,8 @@ struct PPU : PPUcounter { public: struct Source { enum : uint8 { BG1, BG2, BG3, BG4, OBJ1, OBJ2, COL }; }; - struct TileMode { enum : uint { BPP2, BPP4, BPP8, Mode7, Inactive }; }; - struct ScreenMode { enum : uint { Above, Below }; }; + struct TileMode { enum : uint8 { BPP2, BPP4, BPP8, Mode7, Inactive }; }; + struct ScreenMode { enum : uint8 { Above, Below }; }; struct Latch { //serialization.cpp @@ -239,9 +239,9 @@ public: }; struct Pixel { - uint8 source; - uint8 priority; - uint16 color; + uint8 source = 0; + uint8 priority = 0; + uint16 color = 0; }; //io.cpp