Commit graph

2388 commits

Author SHA1 Message Date
Unknown W. Brackets
d7d0242225 Minor simplification to ctrl buffer updates. 2013-11-17 19:32:20 -08:00
Unknown W. Brackets
39cd7f812a Move ctrl to after vblank, not before.
Tests I'd done long ago suggested this wasn't right, but we made other
timing fixes since then, and now tests are showing this is the right
order.

May improve Patapon/etc. timing, or may hurt it...
2013-11-17 19:32:20 -08:00
Unknown W. Brackets
8f6315e375 Support replacement chars in sceFontGetCharInfo(). 2013-11-16 23:32:13 -08:00
Sacha
fb7c3d96fd Introduce Timer Hack.
Has been used in previous Symbian releases to improve speed. Was thought to only work on Wipeout but actually works on most games?
Games that run based on internal timer will experience 60 VPS without frameskip.
2013-11-16 02:16:17 +10:00
Unknown W. Brackets
21c9577801 Initialize fcr31 correctly (even though unsup.) 2013-11-14 23:44:49 -08:00
Unknown W. Brackets
26f5922174 Return the correct value for fcr0/fir.
This is what the PSP actually returns, it's read only.
2013-11-14 23:39:08 -08:00
Henrik Rydgård
90888aad14 Merge pull request #4532 from sum2012/sceio
Fix Buzz Ultimate Music Quiz black screen Sporadically
2013-11-14 14:03:20 -08:00
shenweip
9bc534d54a Wrap some empty functions. 2013-11-14 22:43:00 +08:00
Henrik Rydgard
9d4ece0f58 Robustify the ELF loader a little - it didn't like unaligned addresses.. 2013-11-14 11:44:14 +01:00
sum2012
f3263ed4ba Fix Buzz Ultimate Music Quiz Crash Sporadically
issue#4497
2013-11-14 05:21:24 +08:00
The Dax
d56114e30d Fix VS2013. 2013-11-12 18:37:06 -05:00
Sacha
91ddddc2ef Remove unused Thread.{cpp,h} 2013-11-13 02:50:46 +10:00
Henrik Rydgård
efc35103e5 Merge pull request #4483 from xekarfwtos/tsa
Fixes issue #4477 : ULUS10419 : Tenchu: Shadow Assassins hangs the emu.
2013-11-12 04:33:24 -08:00
papel
38a5233dd4 Fix GetBufferInfoForResetting 2013-11-11 08:49:15 +02:00
Unknown W. Brackets
879060f008 Use a CORE_POWERUP state when starting.
Otherwise, we could startup in CORE_POWERDOWN in a second game, which is
confusing.
2013-11-09 23:07:52 -08:00
Henrik Rydgard
2fe898cda8 Add comment with link to important github thread about sceSas threading 2013-11-09 02:05:28 +01:00
Henrik Rydgard
a028f07951 Turn down some logging. 2013-11-08 18:52:07 +01:00
Henrik Rydgård
714754e149 sceAudio: only use the optimized volume=max path if stereo, add a TODO.
Might take care of #4470.
2013-11-07 11:50:24 +01:00
Henrik Rydgård
e687b283f1 Logspam reduction 2013-11-06 10:34:56 +01:00
Unknown W. Brackets
859d14d3f5 Correct sceKernelIsCpuIntrSuspended().
It takes a param.  Verified by tests, it just returns what the param
means, not anything about the current state.
2013-11-04 08:03:51 -08:00
Unknown W. Brackets
dfbfed7534 Oops, avoid a crash on a bad HLE func.
In the debug stats area.
2013-11-04 08:03:50 -08:00
Unknown W. Brackets
732ae13ebb Fast path CallSyscall where possible.
It seems we're spending a decent amount of time there, which isn't
entirely unexpected.  We can eliminate some things easily.
2013-11-04 07:59:37 -08:00
Unknown W. Brackets
baa82e0a9d Keep syscalls the same in the interpreter.
Rather than having different bugs.
2013-11-04 07:59:36 -08:00
Peter Tissen
3bd01cce31 fixes #4443 buffer underrun in the audio system 2013-11-04 14:03:36 +01:00
Henrik Rydgård
b2298a9e86 Merge pull request #4420 from unknownbrackets/savestates
Enable rewind feature in UI, fix a savestate bug
2013-11-03 03:21:51 -08:00
Henrik Rydgård
3144a51e07 Merge pull request #4424 from unknownbrackets/perf
Speed up access to the current HLE thread
2013-11-03 03:13:17 -08:00
Unknown W. Brackets
348ea5b5cf Fix volume scaling for mono inputs, etc.
Fixes #4423.
2013-11-03 01:14:22 -07:00
Unknown W. Brackets
d400b1a67b Keep track of the current thread obj.
To reduce overhead/improve perf.  Actually, it used to be only the current
thread object, but now it's just a cache with accessors.
2013-11-02 22:12:44 -07:00
Unknown W. Brackets
738dfc84e4 Speed up __GetCurrentThread(), it's called a lot.
This only needs to be an assertion.
2013-11-02 22:12:43 -07:00
Unknown W. Brackets
f716d781b6 Retain threadend waits in savestates.
Oops, been broken since 3fb2c8f654.
2013-11-02 17:40:23 -07:00
Unknown W. Brackets
c2b2b366eb Don't erase args in sceKernelLoadExec().
Suspect this will fix Kamen Rider Climax Heroes OOO.
2013-11-02 15:51:15 -07:00
raven02
98cbd90178 Regression font alignment fix 2013-11-02 20:31:39 +08:00
Henrik Rydgård
abacdb1c9c Merge pull request #4344 from unknownbrackets/atrac-minor
Improve basic error checking in sceAtrac
2013-11-01 14:16:13 -07:00
Henrik Rydgård
590ad5c6df Merge pull request #4369 from unknownbrackets/deadbeef
Fill regs with 0xDEADBEEF after syscalls...
2013-11-01 14:15:53 -07:00
Henrik Rydgård
ba0b9707ad Merge pull request #4218 from shenweip/Log
Change some log level.
2013-11-01 10:56:55 -07:00
Unknown W. Brackets
1d14915d87 Fix a string pointer comparison. 2013-10-30 08:14:43 -07:00
Unknown W. Brackets
8d3ba58936 Cap the buffer size in sceAtracSetDataAndGetID().
Not sure if this should be done in the others or not...
2013-10-30 07:55:47 -07:00
Unknown W. Brackets
696aa0f974 Initialize atrac context values per PSP tests. 2013-10-30 07:48:50 -07:00
Unknown W. Brackets
14cff41a9a Fix state value in atrac context with no buffer.
Unlikely games use this, but they could.
2013-10-30 07:48:50 -07:00
Unknown W. Brackets
31112d1fa1 Report and return errors for bad atrac data.
The PSP returns errors for invalid data, so we should too.
2013-10-30 07:48:49 -07:00
Unknown W. Brackets
8dcc384dba Adjust some atrac reporting/logging. 2013-10-30 07:48:49 -07:00
Unknown W. Brackets
3e0c37bb62 Return an error when no data set yet.
Specifically this happens if you sceAtracGetAtracID, but don't set any
data yet.  Games might check for it to load in data.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets
b7bd107956 When using a bad atrac ID, return proper errors.
Tested each func with invalid ids.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets
ee57498b16 Add a setting to skip 0xDEADBEEF reg filling.
For debugging purposes.  Can't think of a better way.
2013-10-30 07:28:52 -07:00
Unknown W. Brackets
9ebaf7b68b Fill registers with 0xDEADBEEF after most syscalls.
Some, like sceMpegRingbufferPut(), we don't, since... it's complicated.
But most we do, like a real PSP does.
2013-10-30 00:47:04 -07:00
Unknown W. Brackets
04ec987448 Initialize thread regs with 0xDEADBEEF.
Also initialize the float regs to NaN.
2013-10-29 21:39:24 -07:00
Unknown W. Brackets
b71255e7b0 Optimize the case where volume is 0x8000.
When left and right volume are both 0x8000, which is the most common, we
can just do a memory copy which is faster.

Also, we can use pushPointers on big endian, probably still faster.
2013-10-29 08:24:55 -07:00
Henrik Rydgård
0e54e24b24 Revert "Use swap code from native instead. Remove all other versions of it."
Broke movie playback.

This reverts commit 9fcb08a326.

Conflicts:
	native
2013-10-28 17:24:03 +01:00
Sacha
72fd653a31 sceAudio: ARM optimisation. 2013-10-29 00:16:37 +10:00
Sacha
d616cc72a2 Add Blackberry statistics overlay option. 2013-10-28 14:19:27 +10:00