* initialize ppu-fast tilecaches on startup
** (fixes graphical residue on Windows)
This commit is contained in:
byuu 2019-07-28 01:44:59 +09:00
parent c77ecef3e0
commit e6d7df41da
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ using namespace nall;
namespace Emulator { namespace Emulator {
static const string Name = "bsnes"; static const string Name = "bsnes";
static const string Version = "107.16"; static const string Version = "107.17";
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

@ -45,9 +45,9 @@ PPU::PPU() {
} }
} }
tilecache[TileMode::BPP2] = new uint8_t[4096 * 8 * 8]; tilecache[TileMode::BPP2] = new uint8_t[4096 * 8 * 8]();
tilecache[TileMode::BPP4] = new uint8_t[2048 * 8 * 8]; tilecache[TileMode::BPP4] = new uint8_t[2048 * 8 * 8]();
tilecache[TileMode::BPP8] = new uint8_t[1024 * 8 * 8]; tilecache[TileMode::BPP8] = new uint8_t[1024 * 8 * 8]();
for(uint y : range(240)) { for(uint y : range(240)) {
lines[y].y = y; lines[y].y = y;