Commit Graph
2031 Commits
Author SHA1 Message Date
Unknown W. Brackets 0d0d036522 Clean up MAC address conversion in HLE.
Not planning to implement net, but this fixes a potential crash / buffer
overflow, and implements a commonly reported unimplemented function.
2013-08-29 23:47:03 -07:00
papel d22e555e4f Fix volume and name of Latin American languages. 2013-08-29 13:25:29 -03:00
CPkmn 47ae4709ba Update sceKernelModule.cpp 2013-08-29 01:26:54 -07:00
Unknown W. Brackets 15a0f39fa1 Return yet more errors while inside interrupts. 2013-08-28 23:15:13 -07:00
Unknown W. Brackets 686d893d5c Return more correct errors inside interrupts. 2013-08-28 22:35:06 -07:00
Unknown W. Brackets 211c2bd955 Refuse a few more waits w/ dispatch/intr disabled. 2013-08-28 22:35:05 -07:00
Unknown W. Brackets 8f25829b06 Change sceAudioOutput* unreseved ch errors.
Tests show it should be this other error code.
2013-08-28 22:35:05 -07:00
Unknown W. Brackets 17a5a42a14 Disable some common waits inside interrupts. 2013-08-27 23:55:37 -07:00
Unknown W. Brackets 61fae4e920 Return proper errors while dispatch disabled.
In at least the majority of waits.
2013-08-27 23:55:37 -07:00
Unknown W. Brackets 252bf04c64 sceKernelDelaySysClockThread() cleanup.
It doesn't wait either of course.
2013-08-27 23:55:35 -07:00
Unknown W. Brackets 93b461774a Disable common wait funcs while intr disabled.
Per PSP tests.
2013-08-27 23:55:35 -07:00
Unknown W. Brackets 130f664030 Oops, disabling a subintr did not work. 2013-08-27 23:55:34 -07:00
Unknown W. Brackets 9aaad39b46 Disable sceKernelDelayThread() w/intr disabled.
But automatically resume the dispatch thread if only it is disabled.
2013-08-27 23:55:34 -07:00
Unknown W. Brackets 1c51564896 Stop practicing thread necromancy. 2013-08-27 23:55:34 -07:00
Henrik Rydgard a530d47fcd Clamp bad audio pitches for safety. 2013-08-27 22:47:45 +02:00
Henrik Rydgard 6360fcb0ae Add some stats to get some idea of much alpha tested drawing we do.
Turns out it's one hell of a lot and we really should fix this by
checking both vertices and textures to deduce when we can just skip
alpha testing safely, probably quite often.

I care about this because alpha testing drawing is very expensive
on some mobile chips.
2013-08-27 21:01:17 +02:00
Henrik Rydgård 5b553d3c45 Merge pull request #3435 from unknownbrackets/audio-minor
Clear the mixbuffer when all channels empty
2013-08-27 01:05:20 -07:00
Henrik Rydgård dde75143ac Merge pull request #3430 from unknownbrackets/framebuf-wait
Watch for consistently high flips, not spurts
2013-08-27 01:04:59 -07:00
Unknown W. Brackets a0db57a5d3 Clear the mixbuffer when all channels empty. 2013-08-26 21:06:26 -07:00
Unknown W. Brackets 57d057d661 Watch for consistently high flips, not spurts. 2013-08-26 20:12:26 -07:00
the avenger 914392708c iOS buildfix 2013-08-26 06:01:23 -07:00
Unknown W. Brackets fa57e23305 Implement volatile memory lock waiting. 2013-08-26 01:04:37 -07:00
Unknown W. Brackets ea2a92a2c8 Seems like these are just aliases. 2013-08-26 01:04:12 -07:00
Henrik Rydgård 3cc28652f9 Merge pull request #3403 from unknownbrackets/fpl
Improve the FPL implementation
2013-08-26 00:25:00 -07:00
Unknown W. Brackets cf9f92e12f Reschedule after resuming interrupts. 2013-08-25 22:38:45 -07:00
Unknown W. Brackets 354dbfec6c Improve some reporting of options structs. 2013-08-25 16:43:47 -07:00
Unknown W. Brackets d547d2b391 Implement sceKernelCancelMutex(). 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 18832f3ca7 Wrap sceKernelFreeFpl() and use better errors. 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 6c6aa1b8ee Wrap sceKernelAllocateFpl() and friends. 2013-08-25 16:38:49 -07:00
Unknown W. Brackets 61e240f482 Allocate fpl blocks in a ring, like the PSP. 2013-08-25 16:38:48 -07:00
Unknown W. Brackets 8d750d65e8 Properly remove timed out fpl waits from status. 2013-08-25 16:38:48 -07:00
Unknown W. Brackets a947c95829 Clean up sceKernelReferFplStatus(). 2013-08-25 16:38:47 -07:00
Unknown W. Brackets fb95f07c5d Implement cancel and delete for fpls. 2013-08-25 16:38:47 -07:00
Unknown W. Brackets a2471b810c Implement basic fpl waiting. 2013-08-25 16:38:46 -07:00
Unknown W. Brackets 107b464ace Handle the fpl alignment option as well. 2013-08-25 16:38:46 -07:00
Unknown W. Brackets 0969261e3e Fix error handling in sceKernelCreateFpl(). 2013-08-25 15:14:21 -07:00
Unknown W. Brackets f48b730828 Wrap sceKernelCreateFpl and fix refer status.
Just initial changes to make it test properly.
2013-08-25 15:14:20 -07:00
Unknown W. Brackets 8d7eb265be Log context switch time, shorten logging a bit.
This is really useful for seeing why games are slow or hanging.
2013-08-25 10:25:49 -07:00
Unknown W. Brackets 2d806b4820 When fps cap is hit, delay current thread only.
Fixes Jeanne d'Arc freezing.  Unfortunately, small hit to perf in God of
War, but may improve audio quality anyway...
2013-08-25 09:46:21 -07:00
Henrik Rydgard 4121d5ae62 Fix division by zero in low latency audio mode 2013-08-25 13:03:57 +02:00
sum2012 8679fb4748 ThreadManForKernel_ceadeb47 should equal to sceKernelDelayThread 2013-08-25 14:45:44 +08:00
sum2012 d017011882 Add ThreadManForKernel and ModuleForKernel
Sample log:https://gist.github.com/sum2012/3bb5deb1a806ef18f5f3
2013-08-25 10:48:32 +08:00
Unknown W. Brackets 109ad17ac6 Use a typesafe struct for opcodes.
Also, correctly read delayslots using Read_Instruction on ARM.
2013-08-24 15:36:24 -07:00
Unknown W. Brackets ec46fdd06c Warning fixes in msgpipes. 2013-08-24 15:36:24 -07:00
Unknown W. Brackets 690c11e590 Oops, quick warning fix. 2013-08-24 11:33:32 -07:00
Henrik Rydgard ee37d51c4b Just some formatting/cleanup 2013-08-24 11:56:40 +02:00
Henrik Rydgard 507050e966 Add an option for the lower latency audio mode we had in an #ifdef before 2013-08-24 11:56:39 +02:00
Henrik Rydgard dfb91d4532 Track number of GPU commands executed per call level.
This is to get an idea if it would be beneficial to compile and cache display lists. Looks like it would be for some games, for example in GTA it's often 20k/80k/20k commands per frame - that is 100k executed commands per frame that could potentially just be executed instead of interpreted. Likewise in Wipeout. Of course, this means yet another cache with invalidation issues etc..
2013-08-23 11:29:55 +02:00
Unknown W. Brackets 1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
Unknown W. Brackets 2ef650aa2d Add a bunch of HLE functions for better reporting. 2013-08-22 23:04:55 -07:00