Commit Graph
6340 Commits
Author SHA1 Message Date
Unknown W. Brackets 6190918158 Don't allow two drawsyncs to be in play at once. 2013-04-07 17:37:24 -07:00
Unknown W. Brackets 5d017829ad Make sure lists aren't reused before they complete. 2013-04-07 17:05:11 -07:00
Unknown W. Brackets 57770dbd95 Delay GPU signals and waits to simulate cycles. 2013-04-07 17:05:11 -07:00
Henrik Rydgard 7900a6d807 Don't use PPGe for debug overlays. Fixes fps counter in games where it didn't work before. 2013-04-07 22:43:59 +02:00
Unknown W. Brackets 5e14cab945 Don't save vregs for threads that don't use them. 2013-04-07 11:47:00 -07:00
Unknown W. Brackets c7020d4872 Optimize resched with a running thread.
Esp. if it would go back to itself.
2013-04-07 11:47:00 -07:00
Unknown W. Brackets 68f5596dee Fix crash if queue is empty during savestate.
On load it would then crash.
2013-04-07 10:32:39 -07:00
Unknown W. Brackets da2d5f0692 Dynamically size the thread queue, explicitly alloc. 2013-04-07 10:27:29 -07:00
Unknown W. Brackets 2ee611de09 Replace the thread ready queue with non-STL.
It seems much faster.
2013-04-07 03:10:14 -07:00
Unknown W. Brackets 4cd260a2fc Centralize the thread ready queue logic.
This makes it slower for now, but should make it easier to optimize correctly.
2013-04-07 03:09:23 -07:00
Unknown W. Brackets 65ac7389d7 Don't get stuck on idle when interrupts run.
This was happening when the dispatch thread was disabled.
2013-04-06 17:04:20 -07:00
Unknown W. Brackets 57963a3de3 sceIoRead/Write doesn't work without dispatch.
Except stdout/etc.
2013-04-06 17:04:19 -07:00
Unknown W. Brackets 2a9354dc1a IO waits don't work without dispatch enabled. 2013-04-06 17:04:19 -07:00
Unknown W. Brackets f380075e2a Only OpenAsync works with dispatch disabled.
And it even re-enables dispatch.
2013-04-06 17:04:18 -07:00
Unknown W. Brackets 2367c17735 Don't suspend/resume dispatch while interrupts off. 2013-04-06 17:04:18 -07:00
Unknown W. Brackets 0595e5099e Don't allow wait in event flags without dispatch.
But this happens after other param checks.
2013-04-06 17:04:17 -07:00
Unknown W. Brackets e6f3c7991c Don't wait on LwMutexes with dispatch disabled. 2013-04-06 17:04:17 -07:00
Unknown W. Brackets 8f17cef95b Stop threadend timeout when the thread ends.
Fixes threads waking up early in tests.
2013-04-06 17:04:16 -07:00
Unknown W. Brackets 0ca4e5f0a7 Implement the jump, call, and ret signals.
Still buggy, but more things show...
2013-04-06 11:03:43 -07:00
Unknown W. Brackets 376ad80d76 Implement sync signal in display lists.
Makes dialogs show up in 3rd Birthday.
2013-04-06 10:12:41 -07:00
Unknown W. Brackets dac448dfae Implement the pause signal a bit better. 2013-04-06 09:59:24 -07:00
Unknown W. Brackets 77311a121d Don't listsync until after the signal handler. 2013-04-06 08:36:03 -07:00
Unknown W. Brackets fb26941a27 Implement sceGeListSync(). 2013-04-06 02:30:38 -07:00
Unknown W. Brackets c0f20c2fdd If the interrupt is not run, don't flip gpuState.
Technically this is a hack, hopefully can remove it soon.
2013-04-06 02:30:37 -07:00
Unknown W. Brackets c57954a72e Implement sceGeDrawSync(). 2013-04-06 02:30:37 -07:00
Unknown W. Brackets 4974124587 Fix some small constant-comparison type warnings. 2013-04-05 20:58:35 -07:00
Unknown W. Brackets 0918ec8598 Return negative for UnscheduleEvent().
It usually won't be, but it could be negative.

Also some other minor warnings.
2013-04-05 20:44:17 -07:00
Unknown W. Brackets 832edb0a8f Fix some x64 type conversion warnings. 2013-04-05 20:29:20 -07:00
Henrik Rydgård 3ed41388b7 Merge pull request #1182 from unknownbrackets/dlist-parts
More of Orphis' dlist rewrite (signal handling)
2013-04-05 02:41:34 -07:00
JimLee168 8ebb733a98 spacing fix 2013-04-05 17:31:42 +08:00
Unknown W. Brackets ef1086413c Correct wait signal handling. 2013-04-05 00:32:35 -07:00
Unknown W. Brackets 339b444703 Switch to a fixed size displaylist queue. 2013-04-05 00:32:34 -07:00
JimLee168 e686ef46b8 Added sceZlibDecompress and VS2010 build fix
Fixes ULUS10121 Bomberman
2013-04-05 13:26:54 +08:00
Unknown W. Brackets 7738b42b9c Implement sceGeBreak()/sceGeContinue(). 2013-04-04 00:36:43 -07:00
Unknown W. Brackets 15cb005a60 Always trigger FINISH and SIGNAL from END. 2013-04-03 08:16:43 -07:00
Unknown W. Brackets ba264b1df3 Don't delay results when dispatch is disabled.
Wait won't work so the CoreTiming event will just cause havoc.
2013-04-03 00:04:17 -07:00
Unknown W. Brackets b80a3e83c3 Reset video pts when registering new streams. 2013-04-01 07:56:43 -07:00
Unknown W. Brackets ec009bc299 Cleanup a few GPU error codes. 2013-03-31 23:57:03 -07:00
Unknown W. Brackets affe91cb3b Refactor some GPU methods to return errors. 2013-03-31 23:57:03 -07:00
Henrik Rydgård 1485a78273 Merge pull request #1146 from unknownbrackets/kernel-uids
Avoid reusing uids for kernel objects.
2013-03-31 23:41:40 -07:00
Henrik Rydgård c4f629ec1f Merge pull request #1142 from unknownbrackets/mpeg-fix
Don't wipe all streams in sceMpegFlushAllStreams()
2013-03-31 23:37:58 -07:00
Unknown W. Brackets 0547d291e3 Avoid reusing uids for kernel objects.
This makes logs easier to read: a uid is an X is an X.  Usually.
Still sequential, and if it runs out, falls back.
2013-03-31 22:29:44 -07:00
Unknown W. Brackets 7bc4b47b85 Don't wipe all streams in sceMpegFlushAllStreams().
Patapon and Patapon 2 didn't like it, sitll works in Crisis Core.
2013-03-31 17:09:33 -07:00
Unknown W. Brackets 25f1001db3 Priority-based msgpipes never woke anyone.
Really need to write tests for this and get into it, I guess...

Fixes Final Fantasy Tactics.
2013-03-31 16:58:15 -07:00
Unknown W. Brackets 2eb1160272 Add some more debug logging for alarms. 2013-03-31 16:56:02 -07:00
Henrik Rydgård 086fd24edb Merge pull request #1138 from unknownbrackets/scheduling
Fix scheduling when starting a thread + potential crash
2013-03-31 13:27:53 -07:00
Unknown W. Brackets 7b608b6946 Fix logging typo. 2013-03-31 12:35:14 -07:00
Unknown W. Brackets 6b9930d4f2 When no packets to decode, return no data more. 2013-03-31 12:35:13 -07:00
Unknown W. Brackets d03eaab774 Implement sceMpegFlushAllStream(). Fixes FF7CC. 2013-03-31 12:35:13 -07:00
Unknown W. Brackets 72921e0a3c If the mipscall id doesn't match, don't create.
Fixes a crash when savestating.
2013-03-31 12:09:59 -07:00