Commit graph

2309 commits

Author SHA1 Message Date
salvy
332d9a2ee0 [!] Fixed async audio
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1306 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-19 18:05:16 +00:00
salvy
53d02b861c [~]Minor clean up, keep setbits constant
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1305 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-19 16:27:05 +00:00
salvy
48bbaef167 [+] Added CIC x105 ucode (Needed for Banjo Tooie, borrowed from Mupen64plus) BT is very playable now, there's just a bug in both PSP/W32 dynarec that causes this game not to boot, otherwise works perfectly on interpreter.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1304 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-19 06:22:28 +00:00
Corn
1f657c2efa [!] Keep last sample value to pad sample data buffer if not enough samples are available (reduce pops and clicks in the audio)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1303 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-18 19:35:29 +00:00
salvy
dcde132975 [~] I don't know why aligning a local variable for mat didn't work well, use a global for now..
[~] Fixed debug build

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1302 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-18 07:42:21 +00:00
Corn
d0fc3b0364 [!] Outer rounding in ConvertN64ToScreen() is needed for proper scaling of textures and screen
[!] More fixes to DKR Dlist commands

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1301 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-17 18:13:30 +00:00
Corn
68b1060f33 [!] Improved matrix handling for DKR (skipping the need for some globals)
[!] Reduced the stack to a single matrix for project matrices 
[!] Made some viewport stuff OSX only

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1300 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-16 21:37:39 +00:00
salvy
942fda9c4a [!] Use a temp mat when multiplying matrices..We could overflow since we were using the next stack slot for storage which mMatStackSize aware, also gcc gives better asm using a local variable :)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1299 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-15 02:29:18 +00:00
salvy
42f2ab8f17 [!] Optimized sprite2D, it assumes base is always followed by flip and draw, and executes as many sprite2d ucodes as possible
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1298 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-15 02:03:57 +00:00
salvy
0dfba36356 [!] Conker's fix was good for banjo tooie too, just needed to be done earlier
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1297 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-15 00:24:24 +00:00
salvy
2b3a0edb63 [+] Added hack to remove fillrects that cover screen in banjo tooie
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1296 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-14 18:48:38 +00:00
salvy
009f06aa2e [!] Fixed fastRand (sorry, didn't mean to commit this in the first place!)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1295 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-14 18:13:03 +00:00
salvy
a27ca4eea8 [!] Broke down PIF Process (Banjo Tooie was failing due this, also allow us to simplify things and move most of the code to ProcessWrite which is called rarely).
[+] Added X-Scale's PIF/CIC-NUS-6105 challenge/response algorithm (Used in Banjo Tooie, PD, and JF)
 http://www.emutalk.net/threads/53217-N64-PIF-CIC-NUS-6105-Algorithm-Finally-Reversed

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1294 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-14 06:47:22 +00:00
strmnnrmn
2bb9864821 [~] Always use RGBA 8888 textures for OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1293 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:59 +00:00
strmnnrmn
488d105cc4 [~] Move some RDP state to RDPStateManager. RDP.cpp is pretty defunct now...might make more sense to rename RDPStateManager to RDP and reduce typing :)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1292 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:52 +00:00
strmnnrmn
2b4774c449 [~] Fix a warning in Ucode_Sprite2D.h - Sprite2DInfo might not be initialised if the dlist is crazy.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1291 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:41 +00:00
strmnnrmn
9a1a238d55 [~] Whitespace
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1290 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:34 +00:00
strmnnrmn
e0f3eca6ba [+] New accurate tmem emulation code for OSX (disabled for now)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1289 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:28 +00:00
strmnnrmn
a805284bb2 [*] Move LoadBlock/LoadTile/LoadTlut to RDPStateManager - code should be functionally identical
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1288 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:21 +00:00
strmnnrmn
0b2b394fc1 [~] Tidy RDPStateManager.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1287 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:14 +00:00
strmnnrmn
c8171c4fe3 [~] For consistency, keep loadlut lrs/lrt etc in fixed point format
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1286 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:08 +00:00
strmnnrmn
429304b148 [~] Don't assert about tlut load texture size - a few roms don't set this correctly, and 16bpp is implicit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1285 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:54:02 +00:00
strmnnrmn
9f816c5ef6 [~] Rename kCheckHashBeforeUpdate to kUpdateTexturesEveryFrame
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1284 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:55 +00:00
strmnnrmn
125243eb0a [~] Various CachedTexture::HasExpired checks aren't needed when we update textures every frame.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1283 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:49 +00:00
strmnnrmn
640c5568ae [~] On OSX, don't bother checking the texture hash before updating.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1282 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:39 +00:00
strmnnrmn
d5319b75e4 [~] Set mLastFrameToUpdate to gRDPFrame + x rather than doing += x. Probably doesn't matter, but this way means we're less reliant on mLastFrameToUpdate being set correctly to gRDPFrame elsewhere
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1281 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:32 +00:00
strmnnrmn
207ea0fb06 [~] On all but PSP, default to updating textures every frame
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1280 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:26 +00:00
strmnnrmn
3a399c2bc4 [~] Tidy Preferences.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1279 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:19 +00:00
strmnnrmn
cbbd1b2880 [~] Fix tabs in debug output
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1278 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:12 +00:00
strmnnrmn
6a11f5a4d4 [~] Rename gTextureMemory to gPaletteMemory
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1277 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:53:05 +00:00
strmnnrmn
a20512169b [~] Fix an assert in DLParser_S2DEX_ObjLoadTxtr
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1276 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:58 +00:00
strmnnrmn
4c7520b103 [~] Give DoConversion a better name - ConvertTexture
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1275 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:51 +00:00
strmnnrmn
a3ebd92100 [~] Tidy ConvertTexture.cpp - drop the p_ prefixes and give vars consistent names throughout
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1274 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:44 +00:00
strmnnrmn
5fed5d198d [~] Liney uppy
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1273 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:37 +00:00
strmnnrmn
fbbd913457 [~] Tidy ConvertImage.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1272 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:31 +00:00
strmnnrmn
2c32785b8b [~] Move the logic for gConversionTable lokups to ConvertTexture.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1271 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:24 +00:00
strmnnrmn
928b5b75bd [~] Move SelectNativeFormat to the top of the file
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1270 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:17 +00:00
strmnnrmn
088cfd061b [~] Move Clamp/Recolour/Mirror functions out of CachedTexture.cpp and into a separate TextureTransform.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1269 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:11 +00:00
strmnnrmn
0d11586c30 [~] Simplify CachedTexture::Initialise
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1268 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:03 +00:00
strmnnrmn
5fe227b674 [~] Move DumpTexture to the end of the file.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1267 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:56 +00:00
strmnnrmn
9b55ada0a7 [~] GetSystemMemoryUsage and GetVideoMemoryUsage are unused.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1266 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:50 +00:00
strmnnrmn
19f1c4d9b8 [~] Fix a warning about palette being redefined.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1265 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:39 +00:00
strmnnrmn
4218e19f5c [~] Tidy TextureInfo a little
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1264 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:32 +00:00
strmnnrmn
b9ac9a12f0 [~] Move TextureInfo::SelectNativeFormat to be a free function in TextureCache.cpp. I want to push this closer to the NativeTexture creation/update so that different platforms can easily override (e.g. OSX can just create RGBA8888 textures.)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1263 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:26 +00:00
strmnnrmn
b92deba504 [~] Update TextureInfo.h header guard to match filename
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1262 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:18 +00:00
strmnnrmn
c82743aedb [~] Rename CTextureCache::GetTexture to GetOrCreateTexture (more greppable). PAss a TextureInfo reference instead of a pointer
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1261 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:11 +00:00
strmnnrmn
eb159c7a01 [~] Missed a TextureDescriptor.h include
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1260 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:51:02 +00:00
strmnnrmn
062e7b40a0 [~] Improve the '0 width/height' assert slightly
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1259 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:50:55 +00:00
strmnnrmn
96de19a570 [*] Rename TextureDecriptor.{h,cpp} to TextureInfo (match the class name)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1258 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:50:48 +00:00
strmnnrmn
a3eee1f6cb [~] CTextureCache doesn't really need to be a pimpl - remove this to avoid a few virtual calls. Remove lots of unused code and tidy.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1257 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:50:36 +00:00