mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-28 21:29:58 +02:00
v107.4
Shrink Pixel struct for ~1.75% speedup [Alcaro]
This commit is contained in:
@@ -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";
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user