Commit graph

38 commits

Author SHA1 Message Date
Wally4000
3fec82b04d Remove stdafx.h for consistency 2022-03-22 18:06:17 +11:00
Wally4000
eadc1b3758 move from typedef to modern using declaration 2021-10-18 18:58:14 +11:00
Carlos R
de782b19ae Implemented Trix for GE and PD 2020-07-05 15:18:45 -07:00
Carlos R
3d1184f990 *Removed vertex stride from the ucode cache, now vertex stride its applied at compile time for all microcodes
*Removed GBI0_Tri4 (F3D microcode doesn't support it)
*Moved GBI0_Tri4 implementation to Ucode_GE.h since this is actually part of the custom microcode used by GE and PD.
2020-07-04 17:37:52 -07:00
Carlos R
6733dbc19d F3D improvements
*Implemented CullDL for F3D microcode, small speed up for games that use this, ex Wave Race 64
*Fixed max light constant for F3D/EX/2
*Continue WIP to optimize the vertex indices at compile time  (F3D its done now)
2020-07-02 22:37:56 -07:00
Carlos R
ef3752e3d2 Implement F3DBETA ucode (this an early version of Fast3D)
*Remove SOTE ucode implementation, this was wrong. Now both SOTE and WRUS will use the Beta ucode
*Fix typo from previous commit that caused that changed ucode hash.
*Added WIP to set the vertex stride at compile time to allow the compiler to do further optimizations when the stride its a power of two. Currently its only done for the new F3DBETA ucode as a test.
2020-06-28 23:13:42 -07:00
Carlos R
9bec25e3ca More improvements to the gfx ucode detection
* Auto defect and cache ucode functions and vertex stride
* Speed up custom ucode detection, avoid string detection and return as soon as there's a match
* Do not attempt to auto defect ucodes that lack a version string
*Alot of code clean up, now custom ucodes should be easier to add (everything related its now in Microcode.cpp)
*Bound checking for InitMicrocode and make sure to set a default ucode version if there's a failure
*Hardcode code_size to avoid issues when hashing ucodes when games set an invalid size, ex Conker
*Simpler way to clear the ucode cache
*Always include gNormalInstructionName even on release builds, the memory we saved wasn't worth the hassle to keep it out of release builds..
2020-06-28 19:28:21 -07:00
=
1511baa25e Fix up paths in headers 2020-05-27 19:20:52 +10:00
Paul Holden
49a06ed319 [~] Make header guards consistently use FULL_PATH_TO_FILE_H_, with script 2013-06-04 22:02:30 +01:00
salvy
88ba769ea0 [!] The projection mat stack is 1 matrix deep, so it cannot be popped/pushed.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1235 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-10 11:06:58 +00:00
salvy
dba8dfc796 [!] Fixed PSP debug build
[!] Fixed error in oshle that caused a branch assumption error
[!] Detect newer PSP revisions..ex E100 etc, also fixed a bad detection
[~] Some clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1029 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-18 23:07:58 +00:00
strmnnrmn
a64b8252fa [~] Some minor ucode cleanup
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@917 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:41:23 +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
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
salvy
9932094a4b [!} Some cleanups in S2DEX and Sprite2D
[!} Made palette loading in S2DEX compatible with recent changes (when using DAEDALUS_TMEM)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@778 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-11 07:07:29 +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
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
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
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
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
650c9878eb [!] Rayman 2 textures stretching should work now
[-] Reverted GBI1_EndDL change

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@478 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-08 10:01:53 +00:00
Corn
0165eb67ed [!] bail audio mixer when called with bogus values (YOSHI)
[!] small improvement in color adjustment process
[!] call popDL directly instead of endDL if possible
[!] Instruction count should now match in debug dlist with value shown in Dlist length
[!] reworked blend explorer and cleaned up debug info and reordered some code


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@475 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-07 08:42:56 +00:00
Corn
896a905413 [!] Reorganized and optimized MemRect for Yoshi (small speedup)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@474 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-05 09:37:37 +00:00
Salvy
d8c3faf594 [+] Implemented S2DEX ObjRectangle (Pokemon Puzzle League is now playable) Note : You need a savestate to get in game
[!] Refactor S2DEX codebase (bye bye redundant code)
[!] Several clean ups in S2DEX

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@469 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-11-02 22:02:36 +00:00
Salvy
40c4452bbd [!] Some code clean ups
[!] Simplified and unified GBI2_PopMtx

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@443 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-14 20:11:34 +00:00
Corn
bc76a6cbda [!] made set/clear GeometryMode in GBI0 and 1 to just one function
[!] Reenabled texture flush at end of frame
[!] some minor rendermode changes

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@438 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-11 19:51:07 +00:00
Salvy
479fa8b569 [!] Some clean ups
[!] Moved Yoshi_MemRect to S2DEX, also it'll be used from S2DEX_RDPHalf_0 to avoid adding overhead to TexRect
[!] Fixed debug build
[!] Removed redundancy in makefile



git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@432 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-07 15:13:45 +00:00
Salvy
c1ba13865e [!] Several clean ups and sorting in DLParser
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@429 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-06 16:03:54 +00:00
Salvy
471de9639f [!] Clean ups in DLParser_SetUcode
[~] Reverted change from 421, was breaking several games (thx re4thewin for reporting it)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@428 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-05 00:01:01 +00:00
Corn
5b794fb14f [!] fixed dlist debug text and warnings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@427 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-04 21:00:41 +00:00
Salvy
9354bcde92 [!] Simplified and set custom ucode names in one go
[!] Patch ucode name table to create custom name tables (Dlist dumps for custom ucodes are accurate now)
[+] Added GBI1_S2DEX ucode name table

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@426 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-04 20:31:26 +00:00
Salvy
cb4be11d60 [!] Revert 423, won't work the way I had it planned
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@425 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-04 18:52:00 +00:00
Salvy
3d09115ae4 [!] Patch uCode tables directly to create custom tables
Note : The benefit of modifying our ucode tables directly
1 - We don't need to build any array which can be really expensive if it happens
2 - No need for a another InstructionLookup
Only issue is that I need to find a clean way to undo any patching to avoid creating conflicts

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@423 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-10-03 00:48:22 +00:00
Salvy
a8ec3958e9 [!] Simplified and added comments to SetUcode (~100 ops)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@414 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-25 07:22:16 +00:00
Salvy
2197a90dbd [+] Patch normal ucode tables to create "custom" ucode tables
[!] Removed all custom ucode tables since they aren't needed anymore (saves alot of space to binary)
[!] Set ucode, patch ucodes, set vtx multiplier in one go (ToDo : set ucode names in one go too)


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@412 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-23 19:16:09 +00:00
Salvy
32acd8a57b [!] Sorted all ucodes and moved them to headers to make development easier and make sure cod placement is optimal (Note : More clean ups and sorting are needed)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@407 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-22 15:47:29 +00:00
Renamed from Source/HLEGraphics/Ucode.h (Browse further)