Skip to content

Releases

FlipNESWindows v1.02 (FlipNES v2.02)

Choose a tag to compare

@TheWDebugger TheWDebugger released this 03 Dec 00:37
e49dbdf

Fixed button delays while playing NES games.

Before, button presses were read at the start of each emulated frame. Most games read the controller in the vertical-blank interrupt, about 14 ms (roughly 0.85 of a frame) later, so they were acting on a press that was already 14 ms old.
Now the game gets the press as it reads the controller, so that staleness is essentially gone. Expect about 14 ms less delay on most games.

What's still there:
Display: a picture still goes through Windows' desktop compositor, which adds roughly a frame (16 ms), and sometimes two, before you see it. This is probably the biggest remaining delay and I haven't touched it.
Sound: I restored the original audio code, so sound delay is unchanged. The default setting is about 160 ms in total (100 ms from the Latency setting, plus 60 ms in the device queue).
Games themselves: many NES games respond a frame or two after a press by design, and that is built into the game and not something to fix.

Rough picture"Before, button presses were read at the start of each emulated frame. Most games read the controller in the vertical-blank interrupt, about 14 ms (roughly 0.85 of a frame) later, so they were acting on a press that was already 14 ms old.
Now the game gets the press as it reads the controller, so that staleness is essentially gone. Expect about 14 ms less delay on most games.

Rough picture:
If the total delay from pressing a button to seeing the result was about 50–65 ms, it should now be about 35–50 ms. You'll feel a difference in fast games, but it won't feel like a different emulator.

What would possibly help more:
Lower the Latency setting (Audio > Latency > Low or Lowest). This only changes the sound, but if what you notice is sound arriving late, it's the biggest single gain, up to roughly 100 ms.
Switch the display to DirectX with a low-latency swap chain. This could save another frame or two. It's a bigger change and I'd want to test it carefully, since my last speed-up attempt broke the audio.
Add an optional "run-ahead" mode that emulates a frame or two early and discards it, which can remove the game's own built-in delay. It's most effective on games that respond one or two frames late, and it uses extra CPU.
If the total delay from pressing a button to seeing the result was about 50–65 ms, it should now be about 35–50 ms. You'll feel a difference in fast games, but it won't feel like a different emulator.

FlipNESWindows v1.0 (FlipNES v2.0)

Choose a tag to compare

@TheWDebugger TheWDebugger released this 02 Dec 02:20
20acfc4

FlipNESWindows (also FlipNES v2.0) is a native Windows port of FlipNES 1.95, the single-file HTML/JavaScript NES emulator. It is a standalone Win32 application, not a wrapper around the web page.

(Highlights)
Tile editor (Tools > Tile editor, Ctrl+E)
Browse CHR ROM or CHR RAM one 4 KB page at a time, or switch to a raw PRG ROM view for games that keep their graphics in program data.
Edit pixels in a large 8×8 view. Left-click or drag to paint, and right-click to pick a color.
Use the game's own palettes, or switch to plain grey.
Copy, Cut, Paste and Clear work on single tiles or on a block you select by dragging or Shift+clicking. Ctrl+C, Ctrl+X, Ctrl+V and Del also work. Copied tiles go to the system clipboard as text, so you can paste them into a different ROM.
Flip horizontally, flip vertically, rotate 90°, and multi-step undo (Ctrl+Z).
Save ROM... exports a .nes file that includes your edits.
Opposite D-pad directions (Input menu)
Allow opposite D-pad directions (Left+Right, Up+Down) lets both directions reach the game at once. It's off by default, which keeps the original behavior of cancelling them. The setting is saved between sessions.

(Fix)
The window no longer opens off-screen. Previously the window position was saved after the window was already destroyed, which could store a bad position and hide the window on the next launch, until it was maximized from the taskbar (this occurred during development and testing). A saved position that is off every screen is now ignored at startup, which also repairs existing settings.

(Notes)
By default, the emulator pauses when its window isn't active, so edits made in the tile editor appear once you return to the game. You can turn this off under Emulation > Pause when the window is not active.
CHR RAM edits are live but temporary, because the game rewrites them. To change those graphics permanently, edit the tiles in the PRG ROM view and reset the game.
FDS disk games can't be exported with Save ROM.

(Download)
FlipNES.exe is a single static executable with no installer and no dependencies.
Settings are stored in %APPDATA%\FlipNES. To keep everything next to the exe, put an empty file named portable.txt beside it.
To build from source, see the README (MSYS2, w64devkit, or Visual Studio).
The exe is unsigned, so Windows SmartScreen may show a warning the first time you run it.

FlipNESWindows v1.01 (FlipNES v2.01)

Choose a tag to compare

@TheWDebugger TheWDebugger released this 02 Dec 02:58
fe02808

Added a simple rewind feature. That's it.