Commit graph

207 commits

Author SHA1 Message Date
strmnnrmn
50717a5cb2 [~] Some minor OSHLE tidying
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@934 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:42 +00:00
strmnnrmn
1700a01222 [~] Is Patch_osContInit correct?
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@933 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:37 +00:00
strmnnrmn
cce1750333 [~] gPatchesApplied can be static
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@932 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:42:33 +00:00
strmnnrmn
8d02eaa1e8 [~] Fix inconsistent line endings (no functional changes)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@913 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-02 12:12:00 +00:00
salvy
cfc5102be4 [!] Fixed silly typo in bcopy (sorry!)
[!] Small optimizations in osAtomicDec and strlen

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@886 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-11 06:43:51 +00:00
salvy
57389bd1c2 [!} Some small optimisations in Patch___osDispatchThread
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@883 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-04 21:23:52 +00:00
salvy
bc380f9700 [!] Fixed ISS200 no longer working with OHSLE (thx kakarotto for reporting)
[!] Optimized Patch_strlen/bzero
[~] ReadAddress wasn't being inlined completely in Patch_bcopy


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@882 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-04 20:59:52 +00:00
salvy
d2de763192 [!] Used a temporal buffer for storing screenshots for savestates
[!] Take savestate screenshot after the next frame rather than storing it in a buffer
[!] Optimized Patch_osCreateThread


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@872 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-21 21:02:39 +00:00
salvy
2bc64156e6 [!] Some clean ups
[!] Made guRotateF and volatile memory platform independent 
[!] Check for invalid reads/writes to PIF

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@870 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-20 21:50:27 +00:00
salvy
85fea84831 [!] Fixed bug in memcpy_vfpu_swizzle when size is less than what we are aligning to
[!] Some optimizations to osStartThread

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@867 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-14 18:55:39 +00:00
salvy
dfa4ebfb4f [+] Added QuickRead16Bits/QuickWrite16Bits (will start optimizing oshle functions more aggressively soon)
[!] Optimized osViSwapBuffer

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@866 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 22:31:14 +00:00
salvy
4b1a0b3354 [-] Removed RR64 hack in OSHLE (doesn't seem to be needed anymore)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@865 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 21:34:37 +00:00
salvy
5fb82a2cc6 [!] Fixed async audio broken (VFPU and MediaEngine don't mix!)
[!] Made fast memcpy truly platform independent
[~] Some more fixes and improvements to memcpy_vfpu_swizzle from last commit

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@862 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-13 02:23:32 +00:00
strmnnrmn
0e698c385d Fix all the remaining mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@852 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:21:04 +00:00
strmnnrmn
8ef65c6894 Fix mixed Windows/Unix line endings in a bunch of files. Add missing newlines before EOLs
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@849 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:20 +00:00
strmnnrmn
22f9d4f0d7 Fix some CRLF/LF inconsistencies
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@845 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:43 +00:00
strmnnrmn
3a37f8ac57 Make FastMemcpy a bit more platform independenty and move to the main Utility dir. I removed the timing test and wrapped it up in a function (what it loses from the function call, it gains from being able to inline GetCurrent)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@844 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:19:36 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
strmnnrmn
767e4efd9c Fix line endings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
Corn
1e126adaba [!] Some fixes to OSHLE gu patches
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@821 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 21:38:15 +00:00
salvy
d947aa6315 [!] Simplified and optimized MatrixFromN64FixedPoint
[!] [OSHLE] Changed to 32bit when storing to a0,1,2,4 regs

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@817 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-25 22:58:37 +00:00
salvy
cb92097be3 [!] Optimized OSHLE timer patches
[!] Removed KI hack from osTimerServicesInit

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@813 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-20 01:35:25 +00:00
salvy
3e7389df90 [!] Simplified when setting TlutAddress
[!] Moved out gVertexStride outside the Tris loop 
[!] Call directly TlutAddress (saves function call)
[!] Bring back recolour white texture (Is needed by Krby's clouds)
[~] Code clean ups etc

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@803 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-07 19:37:58 +00:00
salvy
0355856f6c [!] Use new hash for texture update (faster)
[!] Ignore MakeTextureWhite in auto combiner (causes unnecessary texture updates in Zelda, anyways we ignore it in blendmodes, and have yet to see an issue)
[!] Wait abit longer before trashing textures (texture cache failures in Aerogauge is now 0, VRAM usage seems fine in my PHAT PSP)
[~] Some clean ups, disable osSetIntMask (for now, need to implement it correctly)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@776 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-06 08:58:20 +00:00
salvy
f4b8fcbadf [!] Fixed previous rev not compiling
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@775 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-25 16:43:30 +00:00
salvy
005d71196d [!] Enabled osSetIntMask (ATM we just NOP it.. for some reasons games don't seem to bother, perhaps not important for emulation?) (Let me know if any game no longer works with OHSLE so I can try to implement it)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@774 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-23 23:51:07 +00:00
salvy
6342020194 [!] Tweak gHotTraceThreshold so it can identify more hot traces for the dynarec (speed up)
[!] Optimized guNormalize_Mario
[!] Implemented osSpTaskYielded correctly (OSHLE works for Yoshi again) 
[!] For memory write funcs only use offset for look up

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@773 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-23 23:22:43 +00:00
salvy
aa1cd95213 [!] [OSHLE] CALL DMA functions directly for SI/PI patches
[+] Added no-check-zero-division flag to disable divide by 0 checks for integers

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@767 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-12 19:36:07 +00:00
salvy
847807dac9 [!] [OSHLE] ALL SP patches will call call DMA and Status directly, instead of going through the memory handler
[!] Clean ups and commenting in Memory.cpp


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@765 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-07 02:53:16 +00:00
salvy
755baf793d [!] Use vfpu memcpy for osSpTaskLoad (since copy is always 64 bytes, we gain from the the VFPU)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@763 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-04 03:05:16 +00:00
salvy
003ed1baca [!] Optimized osSpTaskStartGo (HLE tasks will be loaded directly now when using OSHLE)
[!] Fixed a bug in osSpTaskLoad when setting the status reg, also optimized it to DMA directly
[+] Enabled osSpTaskYield/osSpTaskYielded (I noticed it was used in OOT)
[!] increased MEM_UNUSED alloc to store word size data

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@762 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-04 02:07:59 +00:00
salvy
7228cba536 [!] Optimized OS_HLE_osCreateMesgQueue (we now cache the base address)
[!] Free up 8k bytes from MEM_UNUSED region (dunno why we were using this excess of memory..)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@761 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-03 00:36:29 +00:00
salvy
b7f2771819 [!] Implemented osAiSetNextBuffer correctly (optimized it too)
[!] Allocate 8 bytes of memory to handle SP_PC_REG and SP_IBITS_REG (so we can use the pointer table opt and fix some bugs in OSHLE when setting pc)
[~] Removed nasty hack from osAiGetLength (no longer required since osAiSetNextBuffer is implemented correctly)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@760 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-09-02 03:00:53 +00:00
salvy
ed7c346f47 [!] Optimized memory pointer table optimization (faster, and no longer computes the address twice when table is invalid) (Note: Dynarec is broken! Need to update DynaRecStubs.s)
[~] Removed "fast" memory write table (pointer table was already optimizing out) (saves memory too!)
[!] Increased maximum of clipped verts (Fixes Mortal Kombat 4) (Thnx jeanpave for reporting it)
[-] Reverted previous commit (I assumed wrongly that memory alloc was done in word size.. thnx Corn for pointing out!)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@747 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-15 00:27:28 +00:00
Corn
bc7a7177a2 [!] Added showing handled speed hacks (with OP code) in dynarec (undef DAEDALUS_SILENT)
[!] moved some code under DAEDALUS_SILENT to DAEDALUS_DEBUG_CONSOLE and DAEDALUS_DEBUG_DISPLAYLIST

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@737 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-24 13:40:26 +00:00
salvy
cfb4c3a995 [!] FPU reg is now 32bit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@734 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-17 14:53:35 +00:00
salvy
36f553f465 [!] FPUControl is now 32bit
[!] Some small optimizations in OSHLE

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@733 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-17 14:37:15 +00:00
Corn
09fc9d323f [!] optimization of Patch_strchr() (OSHLE)
[+] some comments

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@716 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-07-09 20:32:52 +00:00
salvy
443022494e [!] Update InsertTimer base pointer when is modified (fixes Animal Crossing no longer Quick methods in osInsertTimer)
[!] Enable TLUT hack for Beetle Racing (Game works fine now, Thanks King Pepper for reporting it!)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@674 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-16 18:45:56 +00:00
salvy
341cd0b5b3 [~] Forgot this
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@670 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-14 02:41:49 +00:00
salvy
411c6061cc [!] Simplified ConvertToPhysics (Check k0/1 in one go)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@669 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-14 02:39:07 +00:00
salvy
d619f9d975 [!] Some more optimizations with QuickWrite/Read methods
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@665 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-08 19:23:02 +00:00
Corn
868f19f55e [!] Clean up of GU HLE patches and made them compatible with CPU only
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@664 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-08 18:45:24 +00:00
salvy
d52b7793bd [!] Optimized HLE osSendMesg/osRecvMesg patches (saved 145 ops, yay QuickRead/Write)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@663 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-08 06:17:42 +00:00
salvy
61fa6af06e [!} Optimizations to HLE gu patches (saved over 160 ops)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@662 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-08 05:26:51 +00:00
Corn
c1133f7877 [!] reverted HLE cache patch (while it does cause issues there are more HLE issues in Fzero)
[-] removed redundant SP register update code in dynarec

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@661 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-07 20:02:37 +00:00
Corn
1335817044 [!] use CPU only for memcopy in HLE Patch_memcpy()
[-] Disable osInvalICache HLE patch since it causes issues in some games(Fzero/Starfox) 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@660 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-05 14:33:27 +00:00
salvy
8d33b40f27 [!] Fixed issue in oshle that was breaking Star Soldier
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@659 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-05 02:34:48 +00:00
salvy
0f8ffabc3d [~] Fixed debug build
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@654 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-01 19:40:32 +00:00
salvy
8f5e06f6a5 [!} Some clean ups and simplifies
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@653 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-01 19:20:18 +00:00