puNES Emulator

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

maseter
Posts: 23
Joined: Fri Nov 18, 2016 7:56 am

Re: puNES Emulator

Post by maseter »

He also made a NES Classic palette:
http://www.firebrandx.com/downloads/NES ... c(FBX).zip
Cheers :beer:
User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: puNES Emulator

Post by zeroone »

maseter wrote:He also made a NES Classic palette:
http://www.firebrandx.com/downloads/NES ... c(FBX).zip
But, where is the NES Classic Mini palette?
maseter
Posts: 23
Joined: Fri Nov 18, 2016 7:56 am

Re: puNES Emulator

Post by maseter »

Maybe even include, as half a joke, the original 1997 Nesticle palette!

I tested the NESTICLE.PAL from this zip and it seems to work fine in puNES:
http://www.emulator-zone.com/files/emul ... stc042.zip

It would make puNES, except for nesticle itself, the only other emulator with ballz.

A nod to us who grew up with emulators, not real hardware.

Image
(left is default NTSC, right NESTICLE.PAL)
Cheers :beer:
tepples
Posts: 22705
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: puNES Emulator

Post by tepples »

I was under the impression that any emulator that can run Pilotwings and Super Mario Kart could also run Ballz, and any emulator that can run SD Gundam Gaiden could also run Ball Z.
User avatar
zeroone
Posts: 939
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: puNES Emulator

Post by zeroone »

maseter wrote:Maybe even include, as half a joke, the original 1997 Nesticle palette!
That palette hurts my eyes. Some of the colors are way too bright. Maybe it looked better on CRT monitors.
Sogun
Posts: 1
Joined: Sat Dec 10, 2016 7:23 am

Re: puNES Emulator

Post by Sogun »

Hello.

I haven't looked for new NES emulators in over a decade and this one has become my new favourite.
The only issue I have with it is that I can't find a way to customize the "working directory" route. I want the emulator to store all its files in a folder I can choose and not in the Documents folder in C:\... Is there a way to do it or can it be implemented?

Thanks.
trebor
Posts: 11
Joined: Thu Nov 24, 2005 11:01 am

Re: puNES Emulator

Post by trebor »

Could the "pixel aspect ratio" option please have 4:3 added?

The currently available "possible values": 1:1, 5:4, 8:7, 11:8, provides a close match with 5:4, with the effect of providing a picture aspect ratio of 5:4. That image is slightly too square though, matching the end results of a very old NTSC CRT from the 1950's.

NTSC CRT in later decades [1970/80/90's, 2000's], are 4:3 picture aspect ratio, slightly less square than the aforementioned 5:4 option's provisioning. [5:4 = 1.25:1 & 4:3 = 1.33:1]

Thank You.
lidnariq
Posts: 11430
Joined: Sun Apr 13, 2008 11:12 am

Re: puNES Emulator

Post by lidnariq »

The numbers in that list are PAR, not DAR. 8:7 is the correct setting for emulating an NTSC NES.

("But", you say, "that doesn't produce a 4:3 window!" Exactly. An NTSC TV crops off 16 total scanlines from the top and bottom to produce a 4:3 image)
trebor
Posts: 11
Joined: Thu Nov 24, 2005 11:01 am

Re: puNES Emulator

Post by trebor »

Thanks for the quick response, lidnariq. It is appreciated.

Absolutely understood that the settings are PAR; however, there does not appear to be an option to set DAR. By de facto, it appears the visible screen image results in a display aspect ratio equivalent to the pixel aspect ratio setting.

Indeed, an NTSC CRT (On average) crops a total of 8 scanlines from the top and bottom. Regardless, if 224 scanlines are present, or 232, 218, etc., as that total may vary between CRT displays, the visible screen image display aspect ratio would not change, just the amount of overscan.

Not disputing the correct pixel aspect ratio for a NTSC NES console. Nonetheless, when setting a 8:7 pixel aspect ratio, it translates to the visible image on the screen being only ~14.28% wider than its height. Utilizing the 5:4 pixel aspect ratio, results in the visible screen image being 25% wider than its height.

To achieve a 4:3 display aspect ratio, that the vast majority of NTSC users experienced on NTSC CRTs, the visible screen image should be ~33.33% wider than its height.
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: puNES Emulator

Post by tokumaru »

You appear to be neglecting the fact that although the horizontal resolution of the NES is 256 pixels, the actual image output by the PPU includes some horizontal padding (color 0 on NTSC, black on PAL, unevenly distributed between the left and right sides), extending that to (IIRC) 280 pixels. At a PAR of 8:7, those 280 pixels become 320, which divided by 240 scanlines results in the 4:3 aspect ratio you're looking for.

Stretching the 256-pixel image further than the 8:7 PAR is just plain wrong. If you want more accurate NTSC video, what you need is for the emulator to draw that horizontal padding before stretching the picture by 8:7, then you'll get your 4:3 window.

EDIT:
Nesdev wiki wrote:Multiplying the pixel rate by the scanline length gives 39,375,000*6/4/11*640/(135,000,000/11) = 280 pixels per scanline. The PPU puts signal in 256 of these and a border at the left and right sides.
Source: http://wiki.nesdev.com/w/index.php?title=Overscan
trebor
Posts: 11
Joined: Thu Nov 24, 2005 11:01 am

Re: puNES Emulator

Post by trebor »

Yes...This...

http://wiki.nesdev.com/w/index.php?titl ... developers

"For emulator developers
There are two ways to emulate the pixel aspect ratio of the NES: scale before padding and pad before scaling. The NES PPU hardware performs the padding first, adding 24 pixels of border to form a 280x240 pixel picture that can be resized to 320x240, 640x480, or 960x720 square pixels, or to 352x240 or 704x480 if your SDTV output circuit produces non-square pixels at 13.5 MHz (Rec. 601/DVD dot clock, 132/35*colorburst) or 13.423 MHz (PlayStation dot clock, 15/4*colorburst). But as a slight optimization, you can scale first (256 * 8/7 = 292) and then pad: stretch the 256x240 pixels to 292x240, 584x480, 876x720, or 1168x960 square pixels or 320x240 or 640x480 non-square pixels. Then you can emulate the overscan by drawing a TV bezel on top of the edges of the emulated picture"


...would be perfect. Results are a 4:3 display aspect ratio (Window or full screen) for the NTSC NES.
tacoboy42
Posts: 1
Joined: Thu Oct 02, 2014 10:25 am

Re: puNES Emulator

Post by tacoboy42 »

hello I am running into an issue on v0.100 and WIP 0.101 64 I can define the increment/decrement slot to a joystick but in use I can only use increment slot, decrement just does not work on the joystick no matter what button it is assigned. keyboard still works as defined.
StuartTheFish
Posts: 1
Joined: Wed Feb 15, 2017 5:39 am

Re: puNES Emulator

Post by StuartTheFish »

Is there any way of making this work with launchers, like Launchbox, hyperspin, etc? By default, launchbox wants to use nestopia, but I'd rather use PuNES. Seems I need to know the command line stuff to make it able to launch each game. Also, is there a way of mapping the Esc button to close the program instead of alt+Q?
User avatar
BaconIsGood16
Posts: 10
Joined: Tue Apr 12, 2016 7:39 pm

Re: puNES Emulator

Post by BaconIsGood16 »

Hello, I just wanted to report a bug with a game called Akumajou Special - Boku Dracula-kun (Japan) the English translated version, The English translated rom appears on screen all glitched but the original Japanese Rom works perfect. Thank you and have a nice day.
Attachments
Akumajou Special - Boku Dracula-kun (Japan) [En by Vice v1.04] (~I'm Kid Dracula!!)_000003.png
MagusLOGS
Posts: 2
Joined: Sat Nov 19, 2016 2:55 pm

Re: puNES Emulator

Post by MagusLOGS »

First i want to thank you for making this great Emulator, i love it.

puNES is running perfect on my Gaming PC but i have a problem running it on my second PC, a Retro Box (XP Pro, Dual Core @1,80, 2GB RAM, 512MB Nvidia ION).
I've tested both latest versions 0.101 of D3D9 and SDL, both run fine when Audio is turned off but when i turn Audio on it starts to get micro stuttering. SDL runs better as it has very few micro stutter, D3D9 is unplayable and i get screen tearing (have DirectX9 installed).

I've tried many things to fix this by enabling/disabling VSYNC in puNES, VSYNC in Nvidia Panel, disabling APU channels, downgrading Audio quality, CPU overclocking, nothing worked.
It has probably something to do with XP being old or the Dual Core is to slow, however its just a Audio issue and it would be awesome if someone could help me out.
I am asking this because the other Emulators such as ePSXe, PJ64, Snes9X run without any issue on my Retro Box and i am curious what i am missing for puNES.

For future builds, it would be awesome if you could add a simple Game-List launcher similar to ePSXe's and a Scanline function with adjustable brightness similar to ePSXe's.

edit: I found a solution, all i did was set the Mode to NTSC and Frameskip to 1, VSYNC is better to be turned off. It runs butter smooth now.
Last edited by MagusLOGS on Thu Aug 03, 2017 6:20 am, edited 2 times in total.
Post Reply