Shrink Pixel struct for ~1.75% speedup [Alcaro]
This commit is contained in:
byuu 2019-10-01 06:41:38 +09:00
parent 2f684caa7c
commit 3701236ca0
2 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ using namespace nall;
namespace Emulator { namespace Emulator {
static const string Name = "bsnes"; 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 Author = "byuu";
static const string License = "GPLv3"; static const string License = "GPLv3";
static const string Website = "https://byuu.org"; static const string Website = "https://byuu.org";

View File

@ -40,8 +40,8 @@ struct PPU : PPUcounter {
public: public:
struct Source { enum : uint8 { BG1, BG2, BG3, BG4, OBJ1, OBJ2, COL }; }; struct Source { enum : uint8 { BG1, BG2, BG3, BG4, OBJ1, OBJ2, COL }; };
struct TileMode { enum : uint { BPP2, BPP4, BPP8, Mode7, Inactive }; }; struct TileMode { enum : uint8 { BPP2, BPP4, BPP8, Mode7, Inactive }; };
struct ScreenMode { enum : uint { Above, Below }; }; struct ScreenMode { enum : uint8 { Above, Below }; };
struct Latch { struct Latch {
//serialization.cpp //serialization.cpp
@ -239,9 +239,9 @@ public:
}; };
struct Pixel { struct Pixel {
uint8 source; uint8 source = 0;
uint8 priority; uint8 priority = 0;
uint16 color; uint16 color = 0;
}; };
//io.cpp //io.cpp