mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-29 17:20:07 +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 {
|
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";
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user