nesdev.com
http://forums.nesdev.com/

Nesalizer WIP on github
http://forums.nesdev.com/viewtopic.php?f=3&t=10541
Page 1 of 1

Author:  ulfalizer [ Thu Sep 26, 2013 6:44 pm ]
Post subject:  Nesalizer WIP on github

In case anyone's interested, I've put a WIP of the emulator I'm working on on GitHub: https://github.com/ulfalizer/nesalizer.

Currently Linux-only and lacks a GUI and save states, so not really worth using yet, but I might get some testing out of it at least if I'm lucky. :)

Author:  ulfalizer [ Thu Sep 26, 2013 7:34 pm ]
Post subject:  Re: Nesalizer WIP on github

It uses blargg's blip_buf by the way, and syncs audio to video by adjusting the pitch slightly to maintain a preset audio buffer fill level. The parameters for the latter are hardcoded at the moment, and the approach probably isn't optimal. Should try James' approach.

Author:  James [ Fri Sep 27, 2013 7:31 am ]
Post subject:  Re: Nesalizer WIP on github

ulfalizer wrote:
lacks save states, so not really worth using yet

Boo! Save states are for cheaters! :lol:

Author:  ulfalizer [ Fri Nov 29, 2013 12:23 am ]
Post subject:  Re: Nesalizer WIP on github

Now supports rewinding, and also does a proper reversal of the audio as a gimmick.

Thanks to Blargg for helping me find a neat way to do this with blip_buf!

A demonstration is available on Youtube. It slaughters the video quality a bit, so I also put it on Dropbox. I picked a game where I was sure to die a lot. :P

Author:  miker00lz [ Fri Nov 29, 2013 1:15 am ]
Post subject:  Re: Nesalizer WIP on github

Good work! Playing Mega Man 2. My main box here is Windows so I had to do a little hacking around in the code, especially the timing code since there is no clock_nanosleep or timespec in Win32... but all seems good.

Image

Author:  ulfalizer [ Fri Nov 29, 2013 1:21 am ]
Post subject:  Re: Nesalizer WIP on github

miker00lz wrote:
Good work! Playing Mega Man 2. My main box here is Windows so I had to do a little hacking around in the code, especially the timing code since there is no clock_nanosleep or timespec in Win32... but all seems good.


Thanks, and cool that you took the time to port it :beer:! I suspected there wouldn't be much platform-specific stuff in there besides the timing code.

Sound stable? Rewind working?

Author:  ulfalizer [ Fri Nov 29, 2013 1:25 am ]
Post subject:  Re: Nesalizer WIP on github

What environment did you use by the way? Cygwin? If you have a patch ready I could add it along with some instructions in the README for a Windows build. :)

Author:  miker00lz [ Fri Nov 29, 2013 1:43 am ]
Post subject:  Re: Nesalizer WIP on github

How do I use the rewind function? Sound seems very stable so far, yeah.

I used MinGW. I'll provide a patch tomorrow some time. I just used SDL timing stuff as a quick crutch to get it working, but the proper way to do it for better accuracy would be to use the Windows performance counter, so I should change that first!

Author:  ulfalizer [ Fri Nov 29, 2013 1:57 am ]
Post subject:  Re: Nesalizer WIP on github

miker00lz wrote:
How do I use the rewind function? Sound seems very stable so far, yeah.


Hold R.

miker00lz wrote:
I used MinGW. I'll provide a patch tomorrow some time. I just used SDL timing stuff as a quick crutch to get it working, but the proper way to do it for better accuracy would be to use the Windows performance counter, so I should change that first!


Thanks!

Did you use MSYS? The Makefile isn't exactly friendly to cmd.exe. :P

Last I looked into the SDL timing functions the resolution seemed very poor, so it's interesting that you managed to get it working decently at least.

Author:  miker00lz [ Fri Nov 29, 2013 2:02 am ]
Post subject:  Re: Nesalizer WIP on github

Yep, MSYS. :)

SDL timing res is pretty poor you're right, there is an occasional slight pause in the gameplay because of it but for the most part it works smoothly.

Rewind works perfectly! Nice.

Author:  ulfalizer [ Fri Nov 29, 2013 2:39 am ]
Post subject:  Re: Nesalizer WIP on github

Good to hear!

Author:  ulfalizer [ Sat Dec 07, 2013 9:10 am ]
Post subject:  Re: Nesalizer WIP on github

Now has PAL support. High Hopes and Quantum Disco Brothers run fine.

Should get around to adding a GUI soon to make it a bit more usable... :P

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/