Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gsdx-texture-cache: Improve fix for snow engine game #575

Merged
merged 1 commit into from Jun 7, 2015

Conversation

gregory38
Copy link
Contributor

Instead to hardcode the half-buffer size to 0x140, the new code
compute it.

To avoid regression, I limit the code to big target (>= 1024 pixels)

Please test it (on any games)

gregory38 referenced this pull request Jun 3, 2015
Gsdx half screen (most of) snow engine games
@gregory38 gregory38 added this to the Release 1.4 milestone Jun 4, 2015
@Dreadmoth
Copy link
Contributor

Compiled and tested the plug-in:

Baldur's Gate: Dark Alliance -> still good, haven't noticed any new issues
Baldur's Gate: Dark Alliance II -> still good, haven't noticed any new issues
Champions of Norrath -> half-screen issue fixed
Champions: Return to Arms -> half-screen issue fixed

Used same settings, game versions and PCSX2 version as I did with my previous tests.

Nice work! 👍

EDIT: also tested some other games to see if any new problems had appeared:
Drakan: The Ancients' Gates, Jak 3, Predator: Concrete Jungle were all fine.

Instead to hardcode the half-buffer size to 0x140, the new code
compute it.

To avoid regression, I limit the code to big target (>= 1024 pixels)
@gregory38 gregory38 force-pushed the gsdx-half-screen-snow-engine-v2 branch from 4a1281c to 7d124e6 Compare June 5, 2015 07:06
@Dreadmoth
Copy link
Contributor

Dreadmoth commented Jun 5, 2015

Uploaded the plug-in for anyone who wants to test but can't compile it themselves: https://www.mediafire.com/?ppn6yhcc7kqf8b6

Hopefully I didn't mess it up somehow - first time I've used Visual Studio and Git for Windows

EDIT: People who have been linked here by video tutorials, etc. should update to the latest development version from here instead of using this very outdated plugin

@gregory38
Copy link
Contributor Author

good initiative 👍

@Meowmel
Copy link

Meowmel commented Jun 5, 2015

What a coincidence, just did a short 5h marathon playing Champions of Norrath co-op with a friend - Dolphin sadly started to shit itself playing Baldur's Gate 1: Dark Alliance from where we stopped last week. :(
Used v1.3.1-449-g6c8f7a0 from the Buildbot. OGL SW Mode still has the "gsdx out-of-memory texturing temporarily disabled" with heavy texture flickering (starting at the forest), 4GB Patch on the pcsx2.exe fixes this. After this, no crashes, no texture problems anymore. Will do more testing after some sleep. OGL HW worked as well, but we had some fps problems with 2 on-screen characters.

@karasuhebi
Copy link
Contributor

Will the need for NTCore's 4GB patch go away when PCSX2 goes fully x64?

@gregory38
Copy link
Contributor Author

On linux we have 4GB as default on 64 bits kernel.

However I do think it is possible to reduce memory consumption. First we need to find the source. Then find a solution :p

@ghost
Copy link

ghost commented Jun 6, 2015

Can confirm Champions: Return to Arms has been fixed.

Also tested Tekken 5, no new issues to report.

@mirh
Copy link

mirh commented Jun 6, 2015

@karasuhebi
Given we have access to pcsx2 sources, why can't large address aware flag be included in the code?

@gregory38
Copy link
Contributor Author

Ok. Let's go in the wild.

LA flags doesn't solves VRAM limitation neither performance drop. Code can be fixed (nearly sure)

gregory38 added a commit that referenced this pull request Jun 7, 2015
gsdx-texture-cache: Improve fix for snow engine game
@gregory38 gregory38 merged commit a5fe847 into master Jun 7, 2015
@Dreadmoth
Copy link
Contributor

Updated to a5fe847, tested again:

Both Baldur's Gate: Dark Alliance games work fine - same as previous version tested.

Both Champions games have a new problem: right side of the screen is stretched and far right side is cut off - this occurs at native resolution and at multiples of native resolution. GS dumps and screenshots. Software mode works normally.

Also tested Drakan: The Ancients' Gates: it works normally at native resolution and multiples of native resolution, but custom resolutions don't work - if custom is selected the game renders at native resolution. I'm not sure if this issue is new to this particular build - might have appeared due to some other recent change(s). I remember custom resolutions working correctly in Drakan with the PCSX2 1.2.1 release.

EDIT: seems like custom resolutions are non-functional in everything (that I've tried) except the Snowblind engine games - they still have issues with them, but at least the resolution is applied...

@gregory38
Copy link
Contributor Author

@refractionpcsx2, it seems height detection is not yet perfect.

Custom resolution is broken due to auto detection support. I think Ref want to remove it completely.

@refractionpcsx2
Copy link
Member

I thought I did last night ?

@refractionpcsx2
Copy link
Member

In 0a46729 it has been changed so height is set based on the buffer width again and set before the custom resolutions are selected

@Dreadmoth
Copy link
Contributor

Tested 0946958 - Champions games fixed, Baldur's Gate games still good :)
Custom resolutions - same as last post.


Update: tested b5171df :
Champions games stretch issue is back and at native resolution the right half is misaligned: GS dump and screenshot

Baldur's Gate games still good (tried native res through to 4x native).

Tried different resolutions in Drakan: The Ancients' Gates - native res, 4x native, custom res 1440x1080, and custom res 3840x2160 (with widescreen patch) all worked fine :)


Update 2: tested 95c2622 :
Champions games stretch issue fixed (again) - however at native resolution the right half is still misaligned (see above for GS dump / screenshot).

Baldur's Gate games still good.

Custom resolutions still working in Drakan.

@Blinkyrocket
Copy link

What about performance? I used the fix and the screen looks great at 4x native, now the only problem is FPS

@gregory38
Copy link
Contributor Author

Performance isn't important currently. Priority is on accuracy.

@Blinkyrocket
Copy link

Might not need it anyway, I got the latest SVN and have speed hacks set to around 2 on both and am playing the beginning of Champions at constant 60 frames, performance problem might be solved for me but the beginning isn't as performance intensive as the rest of the game.

@Blinkyrocket
Copy link

Nope, still slows to 34 fps in caves.

@gregory38 gregory38 deleted the gsdx-half-screen-snow-engine-v2 branch July 12, 2015 12:54
@SWEG1337
Copy link

Hi, thanks for your work. I am new in the emulator world and I need some help. I have downloaded the plugins from Dreadmoth and put all the files in my pcsx2 folder. Do I need to enable something somewhere because I still can't play Baldur's Gate Dark Alliance.

@refractionpcsx2
Copy link
Member

Frm dreadmoth? Just get the latest git build from pcsx2.net, it should be working fine

@Dreadmoth
Copy link
Contributor

Yeah, the latest git build should work and should have less graphical issues than the plug-in I uploaded early last month (which is missing a lot compared to the current version).

Make sure you apply the 4GB patch to the pcsx2.exe, otherwise you might get frequent crashes.

@SWEG1337
Copy link

Okay, so I have downloaded the latest GIT build but BG: DA is still cut in half - and runs extremely slow when run in SW mode but with the half screen fixed. (I believe it is, when I press F9). Do you guys know if I do anything wrong here?

@refractionpcsx2
Copy link
Member

Sounds like you're using a custom resolution where the width is less than 1280.

use the Native x# options or Native Resolution

@SWEG1337
Copy link

It is a fresh install, so I haven't changed anything in regards to resolution. The res I see in options is 640*480 - I have also applied the 4GB patch which helped a bit with the speed when run in SW but it is still extremely slow.

@refractionpcsx2
Copy link
Member

Yeh use hardware mode with one of the scaling options, not the custom resolution, that will break it.

even if you use Native if you want it smallish.

@SWEG1337
Copy link

Okay nice, so I played around with the settings to get the best result. Now it runs 100% smooth with no hiccups or anything, and even cinematics looks nice with no robot voice. I used the Direct3D11 renderer and 2x native scaling with 8bit textures enabled.
Thanks to everyone for helping.

@refractionpcsx2
Copy link
Member

No problems :) There will be crashes and slow points, the game eats memory, so make sure you save often :)

@karasuhebi
Copy link
Contributor

@SWEG1337 Glad @refractionpcsx2 was able to help you out, but please next time don't clutter up the discussion for a Pull Request with support questions. That's what the forums are for:
http://forums.pcsx2.net/Forum-General-Discussion-and-Support-Windows

@YaakovSmirnoff
Copy link

I cant even find a download button

@mirh
Copy link

mirh commented Feb 4, 2016

This is merged in pcsx2.
There's nothing to see here anymore. Just download official release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants