Commit 7786206a authored by Tim Allen's avatar Tim Allen

Update to bsnes v107 release.

[This is specifically a release of bsnes, not the whole higan suite, even though
it contains all the higan source. -Ed.]

byuu says:

Today I am posting the first release of the new bsnes emulator.

bsnes is designed to be a revival of the classic bsnes design, focusing
specifically on performance and ease of use for SNES emulation.

In addition to all of the features of higan, bsnes supports the following
features:

  - 300% faster (than higan) scanline-based, multi-threaded graphics renderer
  - option to disable sprite limits in games
  - option to enable hires mode 7 graphics
  - option to enable more accurate pixel-based graphics renderer
  - option to overclock SuperFX games by up to 800%
  - periodic auto-saving of game save RAM
  - save state manager with state screenshots
  - several new save state hotkeys such as increment/decrement slot#
  - option to auto-save states when unloading a game or closing the emulator
  - option to auto-load aforementioned states when loading games
  - save state undo and redo support (with associated hotkeys)
  - speed override modes (50%, 75%, 100%, 150%, 200%)
  - recent games list
  - frame advance mode
  - screenshot hotkey
  - path selection for games, patches, saves, cheats, states, and screenshots
  - dynamic video, audio, input driver changes
  - direct loading and playing of games without the use of the higan library
  - ZIP archive and multiple file extension support for games
  - firmware folder for unappended coprocessor firmware (see documentation for
    more)
  - compatibility with sd2snes and Snes9X MSU1 game file naming
  - compatibility with higan gamepaks (game folders)
  - soft-patching support for both BPS and IPS patches
  - menubar that does not pause emulation when entered
  - video pixel shaders (requires OpenGL 3.2)
  - built-in game database with over 1,200 games to ensure perfect memory
    mapping
  - (Linux, BSD only:) audio dynamic rate control to eliminate stuttering
  - and much more!

The one feature I regret not being able to support in this release is Windows
dynamic rate control. I put in my best attempt, but XAudio2's API is simply not
fine-grained enough, and the WASAPI driver is not mature enough. I hope that DRC
support can be added to the Windows port in the near future, and I would like to
offer a large cash bounty to anyone who can help me make this happen.
parent fbc15718
Pipeline #48687849 passed with stage
in 28 minutes and 43 seconds
......@@ -31,13 +31,13 @@ using namespace nall;
namespace Emulator {
static const string Name = "higan";
static const string Version = "106.85";
static const string Version = "107";
static const string Author = "byuu";
static const string License = "GPLv3";
static const string Website = "https://byuu.org/";
//incremented only when serialization format changes
static const string SerializerVersion = "106.63";
static const string SerializerVersion = "107";
namespace Constants {
namespace Colorburst {
......
......@@ -26,15 +26,15 @@ struct Configuration {
struct Hacks {
struct PPUFast {
bool enable = false;
bool enable = true;
bool noSpriteLimit = false;
bool hiresMode7 = false;
} ppuFast;
struct DSPFast {
bool enable = false;
bool enable = true;
} dspFast;
struct Coprocessors {
bool delayedSync = false;
bool delayedSync = true;
} coprocessors;
} hacks;
......
This diff is collapsed.
......@@ -20,7 +20,7 @@ struct AudioXAudio2 : AudioDriver, public IXAudio2VoiceCallback {
auto ready() -> bool override { return self.isReady; }
auto hasBlocking() -> bool override { return true; }
auto hasDynamic() -> bool override { return true; }
auto hasDynamic() -> bool override { return false; }
auto hasDevices() -> vector<string> override {
vector<string> devices;
......@@ -52,13 +52,13 @@ struct AudioXAudio2 : AudioDriver, public IXAudio2VoiceCallback {
self.sourceVoice->Start(0);
}
auto level() -> double override {
/*auto level() -> double override {
XAUDIO2_VOICE_STATE state{};
self.sourceVoice->GetState(&state);
uint level = state.BuffersQueued * self.period - state.SamplesPlayed % self.period;
uint limit = Buffers * self.period;
return (double)(limit - level) / limit;
}
}*/
auto output(const double samples[]) -> void override {
uint32_t frame = 0;
......
......@@ -67,22 +67,14 @@ auto Sourcery::parse(Markup::Node& root) -> void {
}
auto buffer = file::read(filename);
header.print("extern const char ", node["name"].text(), "[", buffer.size() + 1, "];\n");
source.print("const char ", node["name"].text(), "[", buffer.size() + 1, "] =\n");
buffer.foreach([&](uint offset, char data) {
if((offset & 127) == 0) source.print(" \"");
if(!data) source.print("\\0");
else if(data == '\\') source.print("\\\\");
else if(data == '\"') source.print("\\\"");
else if(data == '\?') source.print("\\\?");
else if(data == '\r') source.print("\\r");
else if(data == '\n') source.print("\\n");
else if(data == '\t') source.print("\\t");
else if(data <= 0x1f || data >= 0x7f) source.print("\\x", hex(data, 2L));
else source.print(data);
if((offset & 127) == 127) source.print("\"\n");
source.print("const char ", node["name"].text(), "[", buffer.size() + 1, "] = {\n");
buffer.foreach([&](uint offset, uint8_t data) {
if((offset & 31) == 0) source.print(" ");
source.print(data, ",");
if((offset & 31) == 31) source.print("\n");
});
if(buffer.size() & 127) source.print("\"\n");
source.print(";\n");
if(buffer.size() & 31) source.print("\n");
source.print("};\n");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment