Snes9x with xBRZ scaler support

This is for people involved in the developement of Snes9x, or SNES emulators in general.
BUG REPORTS BELONG IN TECH SUPPORT/BUG TRACKING!
Zenju
Snes9x White Belt
Posts: 16
Joined: Mon May 19, 2014 4:46 pm

Re: Snes9x with xBRZ scaler support

Post by Zenju »

Hi,

I just released version 1.1 of xBRZ with two noticeable improvements: 1. alpha channel support, and 2. improved color detection:

https://sourceforge.net/projects/hqmame/files/xBRZ/

I guess Snes9x does not need to scale images with alpha channels, but the new color detection is an improvement in all cases in my tests.

Best, Zenju
sparky
Snes9x White Belt
Posts: 16
Joined: Tue Oct 21, 2014 4:37 pm

Re: Snes9x with xBRZ scaler support

Post by sparky »

I'm trying to apply this to the mac renderer, but I'm kind of at a loss as to how to incorporate the code into the project. I added the three files and made some extra functions, but I don't know how to make the code fit into the program yet. I other words, I don't know how to make it activate that renderer, like which functions need to be referenced in new implemented functions. It's hard to describe. I guess I'll take a look at what you did with the windows port. (Unless you can implement this in the mac code for me so I can just add an Interface Builder enum for the popup menu and sit back 8) .)
Zenju
Snes9x White Belt
Posts: 16
Joined: Mon May 19, 2014 4:46 pm

Re: Snes9x with xBRZ scaler support

Post by Zenju »

One more xBRZ update: v1.2: After having some fun with the alpha-channel I gave the performance yet another intense overhaul: Was able to squeeze out 30% of the already optimized multithreaded version!

2014-11-21: Updated xBRZ to version 1.2:
- improved performance by over 30%
- Improved color analysis

https://sourceforge.net/projects/hqmame/files/xBRZ/
EternalFG
Snes9x White Belt
Posts: 3
Joined: Sun Jan 11, 2015 12:11 pm

Re: Snes9x with xBRZ scaler support

Post by EternalFG »

Amazing stuff! Any build available with xBRZ 1.2?
Zenju
Snes9x White Belt
Posts: 16
Joined: Mon May 19, 2014 4:46 pm

Re: Snes9x with xBRZ scaler support

Post by Zenju »

Predator82 wrote:Comes to TestBuild?
Here you go:
https://sourceforge.net/projects/xbrz/files/Snes9x/

Just compiled from current GIT sources including the 1.2 version of xBRZ.
As expected the actual perf improvement compared to xBRZ 1.1 is quite significant! For testing you can check the CPU time with Process Explorer.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Snes9x with xBRZ scaler support

Post by OV2 »

I'll definitely merge it into the mainline git, just had too much to do the past few months. Thanks again for your efforts Zenju!
7zxkv
Snes9x White Belt
Posts: 2
Joined: Thu Jan 15, 2015 2:55 pm

Re: Snes9x with xBRZ scaler support

Post by 7zxkv »

thank you for the job zenju :)

Is it be possible to have a build 32bits like the previous version?

thanks
Zenju
Snes9x White Belt
Posts: 16
Joined: Mon May 19, 2014 4:46 pm

Re: Snes9x with xBRZ scaler support

Post by Zenju »

7zxkv wrote:thank you for the job zenju :)
Is it be possible to have a build 32bits like the previous version?
thanks
You're on XP, right? The build is 32-bit, but it requires Vista and later. I first wanted to make it XP-compatible but then I get a linker error "fatal error LNK1181: cannot open input file 'ddraw.lib'" that I've not had the time to analyze.
7zxkv
Snes9x White Belt
Posts: 2
Joined: Thu Jan 15, 2015 2:55 pm

Re: Snes9x with xBRZ scaler support

Post by 7zxkv »

yes indeed !
duff
Snes9x White Belt
Posts: 1
Joined: Wed Jan 28, 2015 2:53 pm

Re: Snes9x with xBRZ scaler support

Post by duff »

Hi,

Many thanks, my HTPC was not enough powerful with HLSL 5xBR , but with XBRZ all works fine (and images are better).
I made a pull request https://github.com/snes9xgit/snes9x/pull/64 for GTK.
For linux user (if pull request is not accepted) you can find source here : https://github.com/nmagre/snes9x
DaMan
Snes9x White Belt
Posts: 27
Joined: Thu Jan 22, 2015 2:35 pm

Re: Snes9x with xBRZ scaler support

Post by DaMan »

If you trust the new guy here's a XP and 64bit build.
Zenju wrote:I first wanted to make it XP-compatible but then I get a linker error "fatal error LNK1181: cannot open input file 'ddraw.lib'" that I've not had the time to analyze.
MS removed it from the last DX SDK. You can find it here, but I'll save you some work.
Zenju
Snes9x White Belt
Posts: 16
Joined: Mon May 19, 2014 4:46 pm

Re: Snes9x with xBRZ scaler support

Post by Zenju »

MS removed it from the last DX SDK. You can find it here, but I'll save you some work.
Awesome, that's indeed the problem! Quite strange, but indeed, ddraw.lib is simply missing from the newer version of the DirectX SDK!
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Snes9x with xBRZ scaler support

Post by OV2 »

Finally had the time to merge this in, here is the latest testbuild: snes9x_testbuild_29012015.zip
Zenju wrote:Quite strange, but indeed, ddraw.lib is simply missing from the newer version of the DirectX SDK!
It's been missing since the June 2010 SDK release, probably because they deprecated it. That's why I still build against the June 2008 SDK.
DaMan
Snes9x White Belt
Posts: 27
Joined: Thu Jan 22, 2015 2:35 pm

Re: Snes9x with xBRZ scaler support

Post by DaMan »

Appreciated. FWIW PGO gives me an additional 15% speedup when using xBRZ 4x.
OV2 wrote:It's been missing since the June 2010 SDK release, probably because they deprecated it. That's why I still build against the June 2008 SDK.
The weird thing is its the Win8 SDK.
Hans Stresse
Snes9x White Belt
Posts: 2
Joined: Sat Feb 28, 2015 2:51 pm

Re: Snes9x with xBRZ scaler support

Post by Hans Stresse »

Hi all,
Maye i'm on the correct topic.
First of all, thank you all for your incredible work!
Could you tell me please if the snes9x version you are working on is based on the 8MB made by Fusoya that can be found here ? :
http://fusoya.eludevisibility.org/emulator/index.html
Is the 64 bit version that can be found in the testbuild29012015 made by you, OV2, is "better" than the 32bit version made by Fusoya?
Many thanks in advance for your answers.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Snes9x with xBRZ scaler support

Post by OV2 »

Fusoya's fixes have been merged into the main source repository, so they are included in all testbuilds since february 2013.
The testbuilds contain more changes, fusoya's build is 1.53 + this special fix.
Hans Stresse
Snes9x White Belt
Posts: 2
Joined: Sat Feb 28, 2015 2:51 pm

Re: Snes9x with xBRZ scaler support

Post by Hans Stresse »

Thank you for your answer, OV2. I'm using the last tesbuild for now, and the XBRZ filter is truly a wonderful improvement. You are doing an awesome work!
Khronikos
Snes9x White Belt
Posts: 11
Joined: Mon Apr 06, 2015 4:20 am

Re: Snes9x with xBRZ scaler support

Post by Khronikos »

I just wanted to say thank you to all involved in getting this working. WOWzers. After using 2xsal, not being happy with the others in many ways, this is a shock at just how good this looks. Congrats! Amazing work. I was even comparing this to 5xBR and it honestly looks like this does a better job every so slightly from the screens I was comparing. Amazing stuff man. It really makes those old games look wonderful again.
DaMan
Snes9x White Belt
Posts: 27
Joined: Thu Jan 22, 2015 2:35 pm

Re: Snes9x with xBRZ scaler support

Post by DaMan »

xBRZ 1.3 is out. I take it the changes are no use to snes9x though.
DaMan
Snes9x White Belt
Posts: 27
Joined: Thu Jan 22, 2015 2:35 pm

Re: Snes9x with xBRZ scaler support

Post by DaMan »

Post Reply