PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.5k stars 1.6k forks source link

Hardware issue with Snowblind-based games showing only half a screen #262

Closed shandawgy closed 9 years ago

shandawgy commented 10 years ago

When the following games are run in hardware mode only half the screen is operational and the other half becomes frozen. The games also contain graphic glitches in both hardware and software modes saying GSdx out of memory Textures temporarily disabled which is causing the texture glitches to occur possibly due to a memory leak.

Baldurs Gate Dark Alliance (PAL-M5) [SLES-50672] Baldurs Gate Dark Alliance 2 (PAL-UnK) [SLES-52188] Champions Of Norrath (NTSC-U) [SLUS-20565] Champions - Return to Arms // aka Champions Of Norrath 2 (Pal-UnK) [SLUS-53039] Fallout Brotherhood of steel (NTSC-U) [SLUS-20539]

No previous version has these games working.

Old bug report link: http://forums.pcsx2.net/Thread-Bug-Report-Baldur-s-Gate-Dark-Alliance-PAL

pcsx2-v1.2.1-511-g02b19b7

Plugins: GSDx 20140818023333(MSVC 18.00,AVX) 0.1.16 [GSdx32-AVX] XPad 0.2.0 SPU2-X 2014081802333 2.0.0 cdvdGigaherz (20140818023333ll) 0.9.0

My specs are: Intel core i5-3470T CPU @ 2.90GHz 2x NVidia 560 GForce graphics card SLI 8gb Ram Windows 8 64bit

gigaherz commented 10 years ago

Are all these games using the same game engine? If not, it may be best to keep them separate, even if they have similar symptoms. The actual issue may be unrelated.

shandawgy commented 10 years ago

I have done my research and YES! they all have the exact same game engine this also allowed me to find more games that are also broken with the same problem

the two new broken games i found are: WWII Paratroopers (NTSC-U) [SLUS-20715] The Bard's Tale (NTSC-U) [SLUS-20803]

Ran and tested with same specs and version as previously posted

\ They all use Snowblind Studios game engine

http://en.wikipedia.org/wiki/Snowblind_Studios_game_engine

Baldur's Gate: Dark Alliance (2001) - Developed by Snowblind Studios. Champions of Norrath (2004) - Developed by Snowblind Studios. Baldur's Gate: Dark Alliance II (2004) - Developed by Black Isle Studios. Fallout: Brotherhood of Steel (2004) - Developed by Interplay Entertainment. The Bard's Tale (2004) - Developed by InXile Entertainment. Champions: Return to Arms (2005) - Developed by Snowblind Studios. Combat Elite: WWII Paratroopers (2005) - Developed by Battlebourne Entertainment. Justice League Heroes (2006) - Developed by Snowblind Studios.

53

^^ somebody opened up a issues with "justice league heroes" already. I do not have the game to confirm this but from the description and visual picture it is the exact same problem with all these other games as well and uses the same game engine.

gigaherz commented 10 years ago

Took the liberty to change the title, so it properly represents what the games have in common.

I believe the issue is well-known, even though it doesn't have an issue in the tracker.

ramapcsx2 commented 10 years ago

Yeah, it is well known and somewhere buried on the forums is a technical explanation on what this game engine does that breaks hardware rendering and the other thing that causes software rendering to allocate huge amounts of memory.

goremageddon commented 10 years ago

http://forums.pcsx2.net/Thread-Baldurs-Gate-Half-screen-explained

"An interesting hack / patch would be to just display the frame texture at 0xA0000. That's native 1080p resolution which would be quite nice. "

BlackTelomeres commented 9 years ago

Would that be quite an easy fix for someone familiar with GSDX or would it still be rather arduous to do?

gigaherz commented 9 years ago

Whenever you wonder that, assume that if it's well-known, and not yet fixed, it's because no one wants to spend the effort necessary to fix it. So, arduous is the safe bet ;P

LogQ commented 9 years ago

I think the reason might be that earlier there where no solution to the problem. Finding solution to fix the problem would take much time and effort so no-one taked this job.

Now thanks to Ian we have that knowledge to fix this. We only need one guy to actually make it hapen.

Can we inform some GSDX experts about this?

gigaherz commented 9 years ago

This is the official issue tracker. This is how you inform the experts. All you can do now is wait and hope you are right and things are suddenly simpler.

gregory38 commented 9 years ago

Anyone tried the DISABLE_HW_TEXTURE_CACHE configuration option?

ramapcsx2 commented 9 years ago

Yea, sure. It changes the look of it but that doesn't help much at all.

gregory38 commented 9 years ago

Ok. Could someone share with me a .gs? It really looks like a cache issue.

DISABLE_HW_TEXTURE_CACHE only disable destination target cache. Maybe it is related to others texture cache.

gregory38 commented 9 years ago

For reference there is a dev branch that try to fix the half screen issue.

https://github.com/PCSX2/pcsx2/tree/gsdx-half-screen-snow-engine

You must enable an option manually. It is not stable yet, try toggling native/upscale/opengl/dx.

force_1280_width = 1
justgaming33 commented 9 years ago

@gregory38 Hey! I really want to try that out. could you pls explan what exactly i have to do? i just followed your link and downloaded the zip file. Thank you!Greetings!

gregory38 commented 9 years ago

You need to build the source. If it is too difficult for you, just wait. We're still ironing out some details but hopefully the branch will be merged soon.

justgaming33 commented 9 years ago

Okay, yeah i guess it is ^^. Thank you for the answer. I hope you will be succesfull.Good luck! Greetings!

huntzcom commented 9 years ago

Hello, I have built the dev branch for this but don't know how to do the above, "force_1280_width = 1". Where exactly do I do this? Also, I see this is set to be included in the 1.4 release, is there any estimations when this will be released? Thanks

gregory38 commented 9 years ago

Normally it must work without the option.

I don't know for the release but your test will help to merge it on the master branch.

huntzcom commented 9 years ago

Hello, I downloaded and built the Snowblind fix dev build. I tested the game with all the above suggested option ie hardware/software gx, open gl etc and all other combos but I still have the half screen bug. It also has vertical green lines down the broken right hand side. Thanks for attempting to fix this problem, I am a big fan of the snowblind games so I'm happy to test for you. Thanks

gregory38 commented 9 years ago

Is it working with the sw renderer? Could you generate me a gs dump of your game? Shift f8 => snaps directory

huntzcom commented 9 years ago

The Sw mode works perfectly.

All hw modes have the half screen bug. Here is the gs file and the image below

http://www.gadgetsfan.com/gsdx_20150529213733.gs

gsdx_20150529213733

gregory38 commented 9 years ago

what is the name of the game?

Edit it seems to work here. However I have a couple of full green frame, but it could be an issue with the dump.

huntzcom commented 9 years ago

Champions Of Norrath

huntzcom commented 9 years ago

Hey I have this working now using this https://github.com/PCSX2/pcsx2/pull/545 Very impressed so far, running at two times native res with all graphics enhancements in HW mode and its a smooth 60 fps. Wow

huntzcom commented 9 years ago

Testing has went well. One issue I had was when setting a custom resolution as opposed to using native or scaling. I just get a black screen. Frame buffer width 20 m_width set to 1920 multiplier 1Frame buffer width on vsync 20 m_width 1920

gregory38 commented 9 years ago

Yes don't uses custom resolution.

Game fixed by latest git (+ new PR)

Baldur's Gate: Dark Alliance (2001) - Developed by Snowblind Studios.
Baldur's Gate: Dark Alliance II (2004) - Developed by Black Isle Studios.
Champions of Norrath (2004) - Developed by Snowblind Studios.
Champions: Return to Arms (2005) - Developed by Snowblind Studios.

Game still broken

Game status unknown (please test them)

Fallout: Brotherhood of Steel (2004) - Developed by Interplay Entertainment.
The Bard's Tale (2004) - Developed by InXile Entertainment.
Combat Elite: WWII Paratroopers (2005) - Developed by Battlebourne Entertainment.
Justice League Heroes (2006) - Developed by Snowblind Studios.
gregory38 commented 9 years ago

New PR available #575 Please test it. It will fix PAL version and Champions* games.

gregory38 commented 9 years ago

Code was merged. Half screen issue is fixed on all tested games.

justgaming33 commented 9 years ago

Congratulations on your success in fixing the problem.Amazing! Finally some snowblind games WOHOOO! I guess this fix is gonna be implemented in the next PCSX2 update? Can a none programmer like me use this fix already? Thank you!

Edit: Got it! Downloaded Dreadmoths release

karasuhebi commented 9 years ago

@justgaming33 Changes have been merged. You can just download the latest development builds from the buildbot: http://buildbot.orphis.net/pcsx2/index.php

Afrim502 commented 9 years ago

Total noob here, Sorry to ask but I had downloaded pcsx2 a while a ago and tried to play Champions Return to Arms but I too had the problem with the half screen but running it on SW mode fixed it, to fix this half screen bug what exactly do I have to do? I honestly don't understand what to do from reading all this. Sorry for the noob question, thanks in advanced

willkuer commented 9 years ago

Since the post above yours contained all necessary infirmation helping you might take more than a single post. But this is not a support forum. If you are looking for support please visit http://forums.pcsx2.net/ .