Commit graph

262 commits

Author SHA1 Message Date
strmnnrmn
a629bb2803 [~] Move some DL debugging code (printf style, not the interactive debugger) to a separate DLDebug.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1019 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 21:27:37 +00:00
salvy
3c9d4dd45a [!] Clean ups in mtx code
[!] DKR, do not borrow from the mtx stack, just use an aligned variable (cheaper)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@956 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-16 08:17:10 +00:00
salvy
f40c2467c1 [-] Opps! Reverted previous commit
[~] Some minor clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@940 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-04 05:24:50 +00:00
strmnnrmn
1f2d4ff37e [~] Fix a misnamed variable
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@920 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:41:38 +00:00
strmnnrmn
a1e3d5f1b4 [~] Fix some formatting
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@919 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:41:32 +00:00
strmnnrmn
46dec91c54 [~] RDP_NOIMPL macros aren't used. Merge some formatting changes.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@918 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:41:27 +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
432d158b54 [+] Handle size 32bit in fillrect (fixes the sky in SuperMan 64, Lambo's intro bg looks correct now too)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@908 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-01 02:44:39 +00:00
salvy
aa22f40a05 [+] Optimized FetchNextCommand
[!] Yoshi_MemRect only need to fetch one instruction 
[-] Removed my previous optimizations to Texrect* cmds, FetchNextCommand now gives the same asm anyways 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@907 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-31 06:38:58 +00:00
salvy
df78281e03 [!} Optimized when fetching instructions for Texrect, Texrect_Flip, Yoshi_Memrect and TexRect_Last_Legion
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@894 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-01-18 01:06:40 +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
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
salvy
71803d2823 [!] Simplify when setting custom ucodes (now ucode modifier offset and array building is cached)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@814 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-23 09:51:10 +00:00
Corn
7583bd0d59 [!] Some cleanup and minor (bug)fixes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@806 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-11 10:30:18 +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
Corn
38f073fce0 [!] Fixed Worms sprite flipping in S2DEX
[!] tweaked and fixed texture cache hashing
[!] fixed MK64 character selection textures (don't recall if this broke other stuff?)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@785 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-21 06:08:12 +00:00
Corn
862ea79f67 [!] Reverted to old hash for texture check
[!] Removed unneeded XORing of pointers for TLUTs while copying them (using TMEM)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@782 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-18 05:56:13 +00:00
salvy
c2b4887167 git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@781 42e9bfbe-799a-4a2d-bad1-236e862a387a 2012-10-15 10:05:31 +00:00
salvy
4f68cee2d2 [!] Optimized Dlist loop (Now it only checks the Dlist counter when needed, also counter resets in go)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@780 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-15 10:00:54 +00:00
salvy
8f958d844b [!] Rewrote "full tmem" implementation (based from Rice plugin, doesn't need TLUT hack, can't return NULL, and can be modified by Sprite2D and S2DEX)
[!] Implemented correctly tlut state in Sprite2D (fixes Wipeout and other games, only when full TMEM is defined)

Note: These changes are NOP unless DAEDALUS_TMEM is defined, which is disabled since is slower and uses more memory than our fast implementation *Hopes Corn can port these improvements to it :)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@777 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-09 01:35:33 +00:00
Wally4000
916b7c72e2 Updated uCode files for case sensitive OS's
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@713 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-06-26 08:54:40 +00:00
salvy
354cc8258e [!] Fixed DKR from previous commit
[!] Removed RecolourTextureWhite from blendmode (not used)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@655 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-05-01 20:56:25 +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
Corn
d33bed74b3 [!] Fix for invalid light direction (avoid div zero) and debug output
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@639 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-02 19:25:41 +00:00
salvy
ea3e838fbb [!] Some small optimizations
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@638 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-02 02:16:42 +00:00
salvy
dbef2f7350 [!] Simplified RDP_MoveMemLight (~30 ops)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@637 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-01 22:19:46 +00:00
Corn
f3406a94b2 [-] reverted ucode changes from previous rev since it broke ucode changes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@622 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-03-06 21:58:16 +00:00
salvy
722ea29353 [!] Play with pointers to avoid (expensive) array building for custom ucodes, removed array for custom ucodes too. (~20 ops)
[~] Some clean ups InitMicrocode
[+] Added -pipe option to makefile for faster compile time (Note: This will use more RAM from your computer, make sure to have atleast 512Mb+ when compiling Daedalus)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@621 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-03-04 02:57:31 +00:00
Salvy
eecd8dd480 [!] Reduced number of ucode cache entries to 6 (Max ucodes I ever seen per game is 4 anyways)
[!] Don't cache ucodes globally, only per game (to avoid hitting max of entries and spreading too far from the first entry)
[!] Revert change to chunk size for ROM cache

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@600 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-28 03:03:03 +00:00
Corn
0c0be70e76 [!] Check for Off screen rendering in Tri1, 2 and 4 is now for CBFD only and skips the whole list at once thus avoiding checking individual tris (small speed up)
[!] If Off screen rendering is true, TnL is skipped for Conker (small speed up)
[~] Small cosmetic change in GUI text (will this break translations?)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@590 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-20 13:26:07 +00:00
Salvy
aaa3660f51 [!] Simplified Light Colour (VFPU TnL needs to be updated!!)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@567 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-01-02 00:39:41 +00:00
Salvy
e2ce6d1d2f [!] Some more optimizations in copying data with vectors (~20 ops)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@566 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-31 01:49:51 +00:00
Salvy
7613afcdfd [!] FillRect don't set any colour when not in fill mode (fixes SOTE's text)
[~] Removed SOTE and Wave Racer hacks (no longer needed)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@557 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-21 23:27:59 +00:00
Corn
8cf41c9d99 [+] Hack for SOTE to show text and menus (clean scene has to be enabled)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@556 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-21 20:17:27 +00:00
Salvy
39a80f3859 [!] Keep texture image address in range for Shadow of Empire (game is now playable with some minor issues, is recommended to use a savesatate to get in game)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@553 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-21 01:17:26 +00:00
Corn
fd193ee214 [!] Auto speed adjustment hack for Rayman/Donald duck/Tom and Jerry
[!] Removed some redundant checks for SOTE


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@550 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-20 14:09:13 +00:00
Corn
d736ccbc94 [+] Save more memory using TMEM table with only 64 entries for palette pointers
[+] TLUT hack for Resident Evil 2
[!] Disable Loop Opt for all WWF games 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@544 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-18 12:20:25 +00:00
Corn
d7bbcab7df [!] Small optimization in Dynarec/fragments
[!] Disabled Loop Opt for Donald Duck Going Quackers
[~] Reverted Loop Opt to old code (pre 618)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@541 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-17 19:42:49 +00:00
Corn
97528505f1 [!] some clean up
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@533 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-14 21:59:11 +00:00
Corn
80a2b9b845 [!] Fixed Debug Dlist text output
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@531 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-13 20:17:02 +00:00
Corn
bafbb49d57 [!] Fixed texture loading regression from rev 529
[!] Fixed Debug Dlist text output

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@530 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-13 16:00:38 +00:00
Salvy
a96d0e9ca0 [!] Tidy up LoadTile/LoadBlock
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@529 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-13 00:07:47 +00:00
Corn
12a01a935b [!] fixed debug dlist compile error
[!] compacted MatrixFromN64FixedPoint code

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@525 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-09 22:06:38 +00:00
Corn
17df2a3c7f [!] load matrix directly to stack to avoid copying data twice (setproject, setmodelview and force_matrix)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@524 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-09 20:46:26 +00:00
Salvy
6447f62275 [~] By mistake broke S2DEX1 name table
[!] Fixed wrong fill colour in Automobili Lamborghini (is not correct since we can't really handle 32b size in fillrect (yet)) 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@523 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-09 20:19:53 +00:00
Salvy
12c3f0454c [!] Use LoadUcode to switch to S2DEX2 to avoid adding overhead to GBI2 ucodes (our ucode cache should handle off any overhead from LoadUcode anyways)
[!] Added detection for S2DEX2 ucodes
[!] Some more optimizations in copying data with vectors (~30 ops)


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@522 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-09 19:57:26 +00:00
Corn
2cc220f98e [!] Reuse project matrix stack for DKR matrices
[!] Avoid copying DKR matrix data twice under some circumstances.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@520 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-08 20:36:12 +00:00
Salvy
cd50b4f79d [!} Simplified fillrect even more
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@518 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-05 22:18:27 +00:00
Salvy
4d6cddfcd3 [!] Fix clean scene not working properly when games are clearing the screen (PD)
[!] Simplify check to clear screen
[!] Decode fill color even when clearing screen (fixes bug in PD)
[!] Simplify DLParser_FillRect
[!] Load RDP_Combine in one go (saves 2 ops)
[!] Ignore mem0+mem1 blend in fillrect (is cheaper than handling in general blender after all..)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@513 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-03 22:29:43 +00:00