Major GSdx progress and monthly progress reports!
#1
Hello everyone! I know our news updates have been few and far between as of late, but that's going to change starting now! Several really nice new features have been added by GSdx master Gregory lately. He has been working at breakneck pace and making amazing progress. This update will cover those as well as a few notable improvements by some of the other devs and some changes to how we are doing things going forward. The most visible of those changes for you guys is that we will now be writing monthly progress reports! Sometime around the end of each month/beginning of the next we will be posting a news update which covers all the major changes that have taken place during that month. For now, let's take a look at what has been happening in the world of PCSX2 since the last update!

The first and most noticeable changes are a couple of new GSdx hardware hacks – Align sprite and Round sprite. Yes, hacks are generally not the best way to accomplish things in an emulator. However, the problems that these hacks solve were not solvable in any other way. PS2 games were never meant to be upscaled and because of that when we do several problems occur in many games. Some of these problems are unavoidable and require workarounds to fix.

The first one that we will take a look at is the Align sprite hack. For years, anyone who has played certain Namco games in PCSX2 was stuck either using native resolution or using very specific X resolutions, the largest being 1200. The reason was that if you upscaled in any other way you would end up with these nasty black vertical lines in the image. The reasons behind that are complicated, but can be summed up by saying “It's simply the result of how the game engine does things.” However, thanks to Gregory we don't have to deal with this issue any more! Now games like Soul Calibur II and III, Tekken, and Ace Combat can be upscaled as much as you want without issues. Simply enable the Align sprite hack in GSdx hardware hacks and voilà! No more black lines! Games known to be corrected by it include:

Tekken series
Soul Calibur series
Street Fighter
Death by Degrees
Ace Combat series

Here is a screenshot comparison showing Tekken 5:

Without Align Sprite:
Tekken 5 no align hack


With Align Sprite:
Tekken 5 with align hack

The second hack is the Round sprite hack. As above, this hack solves an upscaling problem that was not solvable in any other way. In many games that use a lot of sprites, upscaling produces noticeable glitches in the sprites. A very good example of that is the character portraits in Ar tonelico games. Before, when you upscaled you would wind up with little boxes around the characters faces. Many other games would have lines or other errors in their sprites when at any resolution aside from native. This again comes down to the fact that PS2 games were never meant to be upscaled. However, Gregory was up to the task and very quickly produced the Round sprite hack which solves all of these problems. If you have a game with many sprites and those sprites have issues with upscaling then it's very likely the Round sprite hack will solve that for you. Games known to be corrected by it include:

Ar tonelico series
Atelier series
Ace Combat Series

Here is a comparison screenshot showing Ar tonelico - Melody of Elemia:

Without Round Sprite:
Ar tonelico no round sprite

With Round Sprite:
Ar tonelico with round sprite

For an in depth explanation of both of these new hacks, please read the developer blog post here.

Now we come to something that is not a hack. Many of you who played certain games have encountered an error in the log such as “Impossible blend for D3D: (Cd - Cs) * 7 >> 7 + Cd “ and while it produces no issue in playing the game, it does mean some effects are not being rendered or are being rendered incorrectly. A good example of this is Grand Theft Auto: San Andreas. This game was practically unplayable in hardware mode due to the graphical issues arising from the impossible blend. The reason we have this issue is that some of the things that the PS2 hardware can do are not very easy or even possible to do on PC hardware. Gregory however decided to tackle the problem. He realized that there are some features in OpenGL which would allow the impossible blend to be emulated correctly and efficiently. In no time at all he had quite literally made the impossible be possible! Currently the issue is fixed only in OpenGL, however Gregory and Refraction are working on fixing it in DirectX 11 as well. Games known to be improved by the correct blending are:

Grand Theft Auto: San Andreas
Valkyrie Profile 2: Silmeria
Metal Gear Solid 3: Snake Eater
Haunting Ground (still has some other broken effects though)

Here is a screenshot comparison showing Metal Gear Solid 3: Snake Eater:

Incorrect Blending:
Metal Gear Solid 3 incorrect blending



Correct Blending:
Metal Gear Solid 3 correct blending

For an in depth explanation of why we have "impossible" blends and how Gregory fixed that, please read the developer blog post located here.

Next we will take a look at some of the changes happening in the OpenGL realm lately. Gregory has been working very hard on this oft neglected backend and it really shows. As a result of that hard work it is now on par with the DX backend in most situations and even more accurate in some games. A good example of that is the shadow rendering in Shadow of the Colossus (pun not intended!).

Before:
Shadow of the Colossus before corrections


After:
Shadow of the Colossus after corrections

We can see from these images that it's the OpenGL backend that does it best now. However the OpenGL backend is also known for being much slower than our DX ones so even if it is on the same level accuracy wise the only people who would really use it would be Linux users, since they don't have a choice. Recognizing that issue, Gregory decided to pull out all the stops. By utilizing a formerly unused OpenGL feature and taking advantage of threaded optimization he was able to bring the OGL backend quite literally up to speed. Here are some numbers that show just how well they compare now(thanks go to Refraction for testing):

Soul Calibur III
Without MTVU:
OGL+Texture Storage = 96fps
DX11 = 92fps

With MTVU:
OGL+Texture Storage = 114fps
DX11 = 112fps

Grand Theft Auto: San Andreas
Without MTVU:
OGL+Texture Storage = 120fps
DX11 = 121fps

With MTVU:
OGL+Texture Storage = 155fps
DX11 = 157fps

Grandia III
Without MTVU:
OGL+Texture Storage = 94fps
DX11 = 94fps

With MTVU:
OGL+Texture Storage = 123fps
DX11 = 122fps

As you can see the results are practically epic! The one unfortunate caveat is this: It's currently only that fast on Nvidia graphics cards. This is due to only Nvidia's drivers currently supporting the “Threaded optimization” settings which needs to be on for this level of performance to be achieved. If AMD/Intel drivers start supporting that then it will work there too. Regardless, Gregory is always working on new ways to eek extra performance out of the OpenGL backend so don't fret if you can't make use of the current boost. Things will only get better as we go on!

Next up is something that is useful to those of us with tons of PS2 games but who don't happen to have unlimited hard drive space – compressed ISO support. A while back, avih had added support for reading gzipped ISOs which was well received due to many of us having lots of PS2 games. Last month things got even better on that front when a coder by the name of unknownbrackets added support for CSO to PCSX2. You may be familiar with CSO files from using them with your PSP or PPSSPP – they are basically a type of compressed ISO file. In order to create CSO files for PCSX2 you should use a program called maxcso which can handle files larger than 4GB. For creating gzip files you can use 7zip (change the “Archive format:” in the compression dialog box to “gzip”). Once you have your compressed file it can be loaded into PCSX2 via the normal method. If you are using a gzip file then PCSX2 will create an index the very first time you load the compressed game in order to speed up access times to various parts of the archive. The amount of space saved is not terribly huge per ISO but if you have many games then it can add up quite quickly. This chart shows the file size of a few games for uncompressed, gzip and CSO file types.

[Image: chart1.png]

As you can see, gzip results in slightly smaller files when using ultra compression level. However it takes a lot longer to compress than CSO so there is a bit of a trade off. Regardless of whether you choose gzip or CSO, this feature is sure to be of good use to those of us with large collections of games!
[Image: XTe1j6J.png]
Gaming Rig: Intel i7 6700k @ 4.8Ghz | GTX 1070 TI | 32GB RAM | 960GB(480GB+480GB RAID0) SSD | 2x 1TB HDD
Reply

Sponsored links

#2
PCSX2 will have a bright future with all your efforts. The progress is amazing! Thank you very much.
Reply
#3
(06-12-2015, 02:41 AM)junjunleon Wrote: PCSX2 will have a bright future with all your efforts. The progress is amazing! Thank you very much.
Much more is coming Smile
Reply
#4
Props to the one brave enough to take on such a massive efforts. Glad the work is paying dividence; definitely some very noticeable fixes in that bunch; including bugs I've run into myself.
Reply
#5
Is there no link to this thread from the article on the website? Regarding gzip, is the ultra setting recommended? Does it affect the performance?
Reply
#6
Higher Compression = Lower Performance

This is true for any compression format. How much it affects you depends on the game and how much load your PC is under.
[Image: ref-sig-anim.gif]

Reply
#7
Very nice! Have been passed long time since such quality improvements. Hope some day the team can fix the infamous "sun glitch".
Plus is the perfect excuse to buy a new nvidia card Smile
Reply
#8
(06-12-2015, 06:34 PM)refraction Wrote: Higher Compression = Lower Performance

This is true for any compression format. How much it affects you depends on the game and how much load your PC is under.

I mean, will it cause problems like stuttering, lags, slowdowns, etc. in practice?
Reply
#9
In practice, "possibly", as i say, it depends how much cpu power you have left over with the game running, the more you have free, the faster it can decompress, the less your game will lag.
[Image: ref-sig-anim.gif]

Reply
#10
In my experience it's really the compression side where the difference is. It takes FOREVER to compress an ISO with gzip ultra. About 40 minutes on my rig. CSO takes about 10.

When playing with them I don't really notice any difference at all. If you had an uber weak CPU you might, but other than that not really.
[Image: XTe1j6J.png]
Gaming Rig: Intel i7 6700k @ 4.8Ghz | GTX 1070 TI | 32GB RAM | 960GB(480GB+480GB RAID0) SSD | 2x 1TB HDD
Reply




Users browsing this thread: 1 Guest(s)