Commit graph

1886 commits

Author SHA1 Message Date
Paul Holden
fd1bc76f18 Commit build output,. 2023-10-15 22:15:29 +01:00
Paul Holden
f525940e9d Install before building. 2023-10-15 21:39:00 +01:00
Paul Holden
cf1b4fcc57 Add lil-gui. 2023-10-15 21:33:33 +01:00
Paul Holden
5bc02441ff Add build workflow. 2023-10-15 21:27:37 +01:00
Paul Holden
7eed48f783 Fix typo. 2023-10-15 14:07:54 +01:00
Paul Holden
91d2c958aa Rebuild. 2023-10-15 13:53:12 +01:00
Paul Holden
20cd801c8f Format. 2023-10-15 13:53:04 +01:00
Paul Holden
6a4513b918 Tidy how the debug UI is toggled, and link lil-gui visibility. 2023-10-15 13:52:56 +01:00
Paul Holden
7e9662ea48 New build. 2023-10-15 11:01:15 +01:00
Paul Holden
b0907c1dda Improve rendering with CVG_X_ALPHA.
If this is set and AA is enabled then it can result in pixels with low alpha values being discarded.

This fixes some depth buffer issues in Mario Kart, Yoshi's Story, Super Mario 64 and more.
2023-10-15 11:01:10 +01:00
Paul Holden
1a5f916871 Clear the background with magenta when debugging. 2023-10-15 10:29:00 +01:00
Paul Holden
f1df72ece2 Timeline improvements:
* Record more events
* Separate track for AI DMAs
2023-10-14 15:52:38 +01:00
Paul Holden
0f9ba9f52c Flesh out timeline UI. 2023-10-14 13:30:17 +01:00
Paul Holden
6d206c06b0 n64js is no longer used. 2023-10-14 13:26:45 +01:00
Paul Holden
9c3ce7fedc Add the beginnings of a Timeline class.
The idea is to provide an easy way to record the sequence in which frames and are rendered and the order in which different buffers are used.
2023-10-12 08:43:41 +01:00
Paul Holden
f1cfeffabc Untangle cpu initialisation a bit. 2023-10-12 08:34:17 +01:00
Paul Holden
a72d25d78e Hoist out hardware as a local variable. 2023-10-11 22:35:09 +01:00
Paul Holden
d489f46bf1 Update TODO. 2023-10-11 22:33:29 +01:00
Paul Holden
c00f417d00 Skip unprintable characters. 2023-10-11 22:30:01 +01:00
Paul Holden
c5108a040a Call this.verticalBlank directly. 2023-10-11 21:36:07 +01:00
Paul Holden
61e1da307a Remove n64js.verticalBlank and just call hardware.verticalBlank directly. 2023-10-11 21:32:47 +01:00
Paul Holden
83e165f11f Implement texrect for S2DEX 1.0. 2023-10-10 22:07:02 +01:00
Paul Holden
71cf20004d Fix s2dex filename. 2023-10-10 08:18:16 +01:00
Paul Holden
7f4473239b Simplify ObjTexture and loadTexture.
These structs are carefully designed to it's easy to construct RDP load commands, so we can just adopt the same approach.
2023-10-09 23:30:50 +01:00
Paul Holden
f209c217b9 Implement loadTLUT using TextureImage. 2023-10-09 23:20:48 +01:00
Paul Holden
79ed0bc39e Format. 2023-10-09 23:18:22 +01:00
Paul Holden
93fcb1b549 Implement loadBlock using TextureImage. 2023-10-09 23:04:37 +01:00
Paul Holden
0a2f55c174 Rebuild n64.min.js. 2023-10-09 22:47:21 +01:00
Paul Holden
d60b1bb791 Add debugging tip back to loadTile. 2023-10-09 22:46:38 +01:00
Paul Holden
4bac394f6a Provide a way to halt on display lists other than the first of each frame. 2023-10-09 22:45:22 +01:00
Paul Holden
279da0a1bb Implement loadTile in terms of uls, ult, lrs, lrt. 2023-10-09 21:27:03 +01:00
Paul Holden
2dadae903d Move rowBytes calculation to loadTile. 2023-10-09 20:55:26 +01:00
Paul Holden
5e6034ed81 Move tmemStride to loadTile. 2023-10-09 20:46:25 +01:00
Paul Holden
a9b3a8e56e Start moving logic involving TextureImage to loadTile. 2023-10-09 20:40:20 +01:00
Paul Holden
47a03c0c86 Fix S2DEX loadTile. 2023-10-09 20:15:42 +01:00
Paul Holden
3796760c14 Consider uls (which is normally zero but doesn't have to be) in loadBlock. 2023-10-09 08:57:29 +01:00
Paul Holden
bfa53cc0a7 Add a note about memrect. 2023-10-09 08:56:49 +01:00
Paul Holden
40f5994c79 Fix SetTextureImage size. 2023-10-08 22:14:14 +01:00
Paul Holden
9332c6d1ec Fix debug output. 2023-10-08 22:13:40 +01:00
Paul Holden
fb8a8d08b0 Add debug option to dump microcode. 2023-10-08 19:05:39 +01:00
Paul Holden
23a8480a1f Improve accuracy of S2DEX texture loading. 2023-10-08 19:00:38 +01:00
Paul Holden
72833cf3c9 Show texture image state. 2023-10-08 18:40:29 +01:00
Paul Holden
6c3dded8a6 Refresh tabs when they are selected. 2023-10-08 18:38:53 +01:00
Paul Holden
0a905815e9 Fix args to disassembleRange. 2023-10-08 18:38:28 +01:00
Paul Holden
1fed1fff21 RSP disassembly fixes. 2023-10-07 22:05:06 +01:00
Paul Holden
67f795f386 Unused var. 2023-10-07 22:00:09 +01:00
Paul Holden
dd58fc1082 Show elements for SBV, SSV etc. 2023-10-06 09:27:09 +01:00
Paul Holden
d9ccc6fe7d Fix RSP disassembly - baseAddr and offset were swapped. 2023-10-05 08:46:40 +01:00
Paul Holden
1397e92377 Fix RSP disassembler scrolling and page up. 2023-10-05 08:34:03 +01:00
Paul Holden
1f6d1570a5 Disassemble RSP imem relative to 0x1000.
This lines up better with jump table instructions.
2023-10-05 08:12:27 +01:00