Commit Graph

257 Commits

Author SHA1 Message Date
cottonvibes 55a94259e2 more FPU opcodes have extra clamping support. just a few more FPU opcodes to go.
i also realized that VU extra clamping needs more work. i'm hoping this is where God of War's SPS comes from, i'll start coding it as soon as i finish the rest of the FPU opcodes.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@107 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 44635b6cf7 minor FPU changes
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@106 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 ab95086a7b Fixed tlb build in vs2k8, it had SSE2 compiler optimizations on. Very bad idea :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@105 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 43b8f52249 fixed the way the VU's check for overflow in recUpdateFlags()
i would like to continue coding, but i have to study for an exam hehe :p

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@104 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes b987309f38 forgot to change this :O
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@103 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes c9be136946 found out why GT4 needed the hack, and fixed it correctly :D no need for the Gamefix hack anymore :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@102 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 6f3a4a032d more FPU opcodes have extra clamping support.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@101 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 39637edee1 some more FPU rec changes.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@100 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 89ee414a38 recoded the FPU div opcode to set correct flags. i thought this would eliminate the need for the GT4 hack, but sadly it didn't fix the problem.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@99 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 cc3ca30880 Small modification to the run sub-menu
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@98 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 7f861132f0 Small visual tweak to gamefixes dialogue, by Cole :)
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@97 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 67ff6f6147 added a Tekken 5 fix to the gamefixes dialog thanks to rama finding the problem. i also tweaked the GT4 gamefix a bit.
note: i haven't tested the Tekken 5 fix. plz comment if it doesn't work.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@96 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 2d805b4987 recoded some more FPU opcodes, and added 2 new speedhacks: "disable extra VU flags" and "disable extra FPU flags".
in the PS2, certain "flags" are set to indicate different statuses. There are flags for overflow, underflow, invalid operation, divide by zero, is Zero, is Negative, etc...
some of these flags are rarely checked by games; so what these speedhacks do is not perform the extra code for flags that are rarely used by games.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@95 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes bfc387a024 minor change suggested by intellect :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@94 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes f35841761d starting to recode the FPU rec opcodes to set correct flags.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@93 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 08e4bab2c4 fixed something from the last revision.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@92 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes c8e1ec9651 some more optimization
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@91 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 bffda0b646 This is still faster, please do some benches before recklessly reverting, k? :)
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@90 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes bf2a2c132a minor fix, thanks again to intellq
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@89 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 3393e1ee03 okay this took me a while, but i managed to make stuff a bit more organized. -New "Advanced" dialog handles all CPU/VU roundmodes, denormals are zero, and flush to zero options. -Moved GT4 and GoW hacks to the "GameFixes" dialog. -"Disable Underflow Checks" no longer controls DaZ, since the "Advanced" dialog handles that.
if you guys don't know what to do in the Advanced dialog, just leave it at the defaults (its called advanced for a reason :p)
Note: if you use Patches to change the roundmode, it will override the roundmode set in the Advanced dialog.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@88 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes dae102b8a3 i accidentally deleted this line; thanks intellq!
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@87 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 3b7414d9a2 some roundmode fixes
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@86 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes e78cf6c9b6 reverted some stuff for now, this should fix what r79 broke. plz comment if it doesn't fix the problems.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@85 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes a490bdb7cf optimized vumicro a bit.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@84 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 38d3773aa7 minor update to the game fixes dialog
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@83 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 77381da985 New "GameFixes" dialogue. Its intended to remove the need for patches. This is my first dialogue, so please bear with me, k? :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@82 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 1e363e9b33 vufloat2 is slower then vufloat. Since both do the same this here helps speed ;)
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@81 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
ramapcsx2 787513a327 A few optimizations to ivumicro stuff
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@80 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes f1ac20f12a modified the Check Overflow speedhacks. now we have "disable VU Overflow checks" and "disable FPU Overflow checks".
they both do the same thing, but one is for the VU recs, and the other is for the FPU recs.
heres how they work:
when Unchecked, pcsx2 performs overflow checks normally.
when Checked, pcsx2 doesn't perform overflow checks, and thus gains a speed boost.
when Greyed, pcsx2 performs additional checks which helps stop SPS (spikey polygon syndrome; i.e. messed up polygons on screen)

Note: FPU recs need some work, they're not setting correct flags. I'll probably implement this by the end of the week. Hopefully it will fix some games that use those flags.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@79 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:21 +02:00
cottonvibes 48fffbba41 minor change, shouldn't affect anything.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@78 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes c278f5385f my mistake; this should really fix it :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@77 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 17ffea9814 this should fix the roundmode patches crash introduced in r75... hopefully :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@76 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 31fc6fd4bf fixed a bug when using the "roundmode hacks" by patch files.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@75 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 3bd19c5c7b modified the Denormals speed hack; now its "disable underflow checks". -leaving it unchecked makes PCSX2 handle underflow like the real PS2 does. -checking it disables underflow checks and is a bit faster. -making it "grey" sets the DaZ flag, which is what causes the big speedup for intel CPU's.
the funny thing is that leaving it checked (black) sometimes fixes games (fixes minor graphic corruption in Initial D: Special Stage)
so try experimenting with it on/off/greyed to see if it fixes graphics for your game.

also, you no longer have to restart PCSX2 for the DaZ hack to work :p

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@74 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 90a9260c26 changing this back, since it wasn't what caused GTA:VCS to break.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@73 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 22a2acba33 okay GT4 should work fine now (for real :p) there was a bug in my RSQRT opcode that messed up the game, i just reverted it for now.
anyways, remember you need to check the Extra Overflow + FPU Clamp Hacks to run GT4

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@72 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes d18a21ad37 okay changed what the GT4 speedhack does. use the Check Extra Overflow + FPU Clamp Hack when running GT4!
i might be able to fix the code to not need the hack in the future; but its going to take some major changes :p

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@71 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 49459b16bd forgot to revert this.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@70 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 8ba4bdbec3 this might fix a GTA:VCS crash
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@69 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 1b3e2f6f04 reverted some minor changes;
note: SVN r4 is what breaks 64bit Linux builds, not entirely sure what the main problem is.
when reverting some files in the x86 folder, games semi-work on x64 linux, but then crash at one point.
they also crash on x86 windows when reverting those files, so this needs some debugging.

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@68 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 88ba4e0b4a fpu's RSQRT now has pre-opcode clamping if you enable Extra Overflow Speedhack; and fixed some stuff for linux GCC compiler, thanks Shanoah!
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@67 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 12d63f137a Rockstar games shouldn't have SPS anymore; also added 2 game-specific hacks, one for God of War, and one for Grand Turismo 4 the God of War hack brings back the SPS in the Rockstar games; so only turn it on for God of War.
hopefully we won't need these hacks in the future, once stuff is handled properly :p

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@66 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
ramapcsx2 09bb4dd533 Changed small logging code to something a little nicer :p
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@65 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
ramapcsx2 79bdfb72f8 -Added some checks to logs in various files so it can now be disabled in release to public builds. -Disabled logging per default in those.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@64 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
ramapcsx2 851f176c8e Changed the "align" parameter from 0 to 1, since the docs say it has to be aligned.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@63 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 10b54e80a9 changed another opcode that might've had an allocation conflict...
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@62 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes d4d0450145 fixed the mgs3 missing texture bug! i think Dawn of Mana's minor-texture problems are gone now as well :) i'm still not entirely sure why the old code didn't work, most-likely conflicting reg-allocations... i might have to check some more opcodes in case they also have the allocation problems :x
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@61 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes 32f6acdc8b minor change
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@60 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes fc82da1f14 reverted and changed some stuff that was causing compiling problems for linux; thanks again to Shanoah
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@59 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00
cottonvibes eba88009df fixed some syntax errors that were causing Linux compiling problems; thanks shanoah! i think theres still some more syntax bugs though...
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@58 a6443dda-0b58-4228-96e9-037be469359c
2016-05-24 22:40:20 +02:00