z2442
d90bac8ef5
clean up narrowing errors
2019-03-23 20:24:40 -04:00
Wally
5dee7fe2cb
Converted remaining HLEGraphics to C11 standard
2019-03-22 16:39:50 +09:00
Ben Slater
c562b76641
*Clean build from StrmnNrmns repo
2019-02-27 17:04:51 +11:00
Wally
e17fdddadf
[~] Fix Conker Regression
...
[+] Remove a hell of a lot more missed asserts.
2019-01-23 17:05:36 +11:00
mrbenslater
2e6cf17baa
Move more debug stuff out of Release
2019-01-21 19:58:47 +11:00
CornN64
bfd94b655c
[!] Some WIP for vertex fog on PSP (functions on many games that uses the standard TnL. It uses a second pass to blend in the fog)
...
[-] Reverted some changes from previous commit since it broke texturing in some games and CBFD lights.
2013-09-21 18:31:48 +02:00
salvy
d8c43fa5f0
[!] Cleaned up MatrixFromN64FixedPoint
...
[!] Fixed Super Bowling's left screen
2013-09-09 21:58:44 -07:00
salvy
caebcfd07a
[!] Proper implementation of Clear_N64DepthBuffer (Fixes crash in SSB)
...
[~] Some clean ups
2013-09-06 00:05:04 -07:00
salvy
9e88e012b5
[!] Always set SkipIfZero when LigtCol is set
...
[!] Refactored MV_LIGHT
[!] Removed invalid light direction check (This was for the PSP, I don't think is required)
2013-08-19 08:18:22 +01:00
salvy
be0f32311c
[!] Implemented proper lightning for Majora's Mask
...
[!] Improved N64Light struct, it can now handle GBI2 (thnx corn for helping!)
[!] Fixed compiled error in SetNewVertexInfoPD, and some clean ups
2013-08-19 08:18:12 +01:00
CornN64
a0ff7c8160
[!] Further optimized lighting calculations and branches in conker TnL.
...
[!] LightVerts() now returns only R,G & B (V3 and no A)
[!] Lights color and direction now uses V3
[!] Fixed RDP_MoveMemLight() to proper light direction.
2013-08-01 18:39:16 +02:00
salvy
1752532c22
[!] Optimized RDP_MoveMemViewport
2013-07-31 22:33:54 -07:00
salvy
d10ff1ca11
[+] Implemented lightning for Conker rendering (PC/OSX only for now) (Corn & Salvy)
...
[!] PSP VFPU ASM compatible with new light struct as well possible to interface with Conker's new TnL. (Corn)
[!] Slight tidy in audio Alist processing loop. (Corn)
2013-07-31 13:56:36 -07:00
Paul Holden
57bb16c9ee
[!] Work around for dlist dump not working anymore on the PSP
2013-07-12 21:56:34 +01:00
Paul Holden
a14f741b7a
[+] Hack for Banjo Tooie shadow
2013-07-12 21:46:29 +01:00
Paul Holden
471de5190d
Change the MomveMemLight code to use u8 for r/g/b and not u32 - the psp compiler generates much better code like this.
2013-07-09 23:45:44 +01:00
Paul Holden
4a5d732533
x/y/z/r/g/b are printed with %d, but are floats. Makes more sense to extract them as ints, and convert to float when the Setxxx function is called.
2013-07-09 20:55:14 +01:00
salvy
8482a296f7
[~] Fixed black box that appeared in SSB when flying away from the screen
2013-06-26 21:51:41 +01:00
salvy
20ca36cb1a
[!] Fixed light in Majora's Mask
2013-06-13 00:41:30 -07:00
Paul Holden
067a594a9f
[~] Move ConfigOptions.{h,cpp} to Config/ and tidy header include order.
2013-06-04 22:02:31 +01:00
salvy
9c22fc361b
[~] Opps typo
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1715 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-23 05:46:10 +00:00
salvy
99988d4f9d
[+] Added advanced option to enable "Clear Depth FrameBuffer", needed for DK64 and Zelda's special effects (This can slow down games, make sure to only enable it if needed)(This enabled by default for PC)
...
[!] Optimized Clear Depth FrameBuffer (Corn)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1714 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-23 05:44:40 +00:00
salvy
9fd514382b
[~} Removed some code that wasn't meant to be committed
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1713 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-22 17:42:33 +00:00
salvy
f652ae99b4
[+] Added clear framebuffer (fixes jumpy camera in DK64, and sun and flames flare in zelda) Note: Is very expensive, so is only enabled for DK64. Might only enable it for PC eventually.
...
[!] Use integers as much as possible for fillrect
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1712 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-22 17:40:25 +00:00
salvy
af19d1a3b3
[+] WIP: Implemented CPU framebuffer, used by demos, Donald Duck, Rayman 2 The Great Escape, and probably other games (currently W32/OSX only)
...
[-] Reverted small constant opt from previous commit, is not worth breaking when EPak isn't used
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1675 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-14 20:11:42 +00:00
salvy
7277157047
[!} Constant optimizations for CFragment::Execute (this is a very hot function!, saves 4 ops)
...
[~] Keep bitfields for texrect, since compiler generates much better asm when it converts int to float (~30 ops)
[!] Clean ups to gu oshle patches, also optimize when reading from stack since is always physical memory
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1674 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-11 06:37:21 +00:00
Corn
ff6d1fb666
[!] Simplified scissor test in TexRect
...
[!] Fixed some formating in Dlist debug
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1673 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-10 12:44:40 +00:00
strmnnrmn
9821e04675
[~] Update DAEDALUS_ASSERT and other macros that are compiled out of release builds so that they 'consume' their arguments without generating any code. This removed the need for use() in a lot of places.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1655 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:37:17 +00:00
Corn
c329fbd011
[!] reverted some unneeded conversions/bloat
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1600 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-19 20:25:01 +00:00
salvy
581072f5e2
[!] Fixed MSVC warnings
...
[!] Optimization for Sprite2D, only update the counter individually when next command doesn't match
[!] Fixed and optimized guNormalize_Rugrats (Still can't find any game that uses this errg)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1599 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-18 22:05:31 +00:00
salvy
8db83457a6
[!] Fixed Glover crashing in W32 build
...
[!] Fixed speed sync in Glover
[~] Removed DLParser_SetTImg_SOTE/DL, they are no longer needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1583 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-15 03:53:36 +00:00
strmnnrmn
6dee6e84c0
[-] Strip out a load of unused debug console cruft
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1566 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-12 09:24:36 +00:00
Corn
292ef28e08
[!] Make TexRectFlip also use integers in DLparser
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1544 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-08 19:05:05 +00:00
Corn
69a757ffdb
[!] do TexRect calculations in integer mode
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1542 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 18:43:22 +00:00
strmnnrmn
6a10ac65f5
[*] Pass integer texture coords through to TexRect and TexRectFlip. For OpenGL, the shader now also passes the texture offset/scale as integer args
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1531 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:29:02 +00:00
strmnnrmn
b359dc1c1f
[~] Remove mAlphaThreshold - this is just the blend colour alpha
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1527 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:28:31 +00:00
strmnnrmn
c8fca866b2
[~] Add a couple of comments to highlight fall-through in switch statements
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1526 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-07 11:28:23 +00:00
strmnnrmn
76c721ebf8
[~] Increment current_instruction_count after checking instruction_limit - now what's displaying in the dldebugger is actually applied.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1517 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 09:17:26 +00:00
salvy
38da6cd456
[~] Opps gGeometryMode has to be global (sorry!)
...
[!] Added blender for Donald Duck (W32/OSX)
[~] Some small changes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1502 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-01 05:32:31 +00:00
salvy
58216d067f
[~] gGeometryMode can be local (saves quiet bit of ops)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1501 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-01 04:00:16 +00:00
strmnnrmn
78dbaece5e
[~] Pass the displaylist depth through to DL_BEGIN_INSTR - use it to indent the output nicely
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1492 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-31 09:45:29 +00:00
strmnnrmn
be4b36f0b4
[~] Move FillColour and BlendColour to BaseRenderer. Going to use these in the dLDebugger
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1488 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:34 +00:00
strmnnrmn
f81780b098
[~] Tidy up DLParser_ProcessDList a little - the DL_ macros are no-ops when DAEDALUS_DEBUG_DISPLAYLIST is not set, so move a block of logic outside the ifdefs.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1487 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:26 +00:00
strmnnrmn
efc7427cd0
[~] Seems a bit lame to only check that the DList PC is in bounds when the Display list debugger is running. Just assert in the fetch function
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1486 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:20 +00:00
strmnnrmn
9d69fdce4c
[~] DLDebug - add separate functions to DLDebugOutput to track the beginning/end of each instruction. On the webdebug version we wrap each instruction in a named span so we can identify it easily. Also, I removed the PC arg from the regular DL dump because it was always given the same value (I think it should have been gDlistStack.address[gDlistStackPointer], but it's not particularly useful and clutters the dump output)
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1485 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:13 +00:00
strmnnrmn
ea528cdbba
[~] Add a DLDebugOutput class. I'm going to override this so that the webdebug version can wrap individual instructions in HTML tags.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1484 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:11:03 +00:00
strmnnrmn
dec9abfd9d
[~] current_instruction_count was being incremented too early
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1483 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-30 15:10:52 +00:00
strmnnrmn
ab9603ebcc
[*] Refactor DisplayListDebugger code so that it doesn't rely on quite so much global state being maintained in DLParser. Keep the global state closer to there it's used. Tested the PSP build and the debugger seemed to still work ok to me - let me know if I broke anything
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1453 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-27 22:07:28 +00:00
strmnnrmn
3f49d459be
[~] Tidy up the way that display lists are dumped. Just pass the sink in directly when needed. The caller is responsible for deleting it, which is much simpler.
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1431 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-25 22:39:42 +00:00
strmnnrmn
03b914f198
[~] Swith DL_PF so that it uses a DataSink - we'll be able to hook this up to the WebDebug code
...
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1428 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-25 22:39:17 +00:00