Paul Holden
3d71a6e100
Rebuild.
2023-10-15 13:54:19 +01:00
Paul Holden
1f56e8fde8
Format.
2023-10-15 13:54:19 +01:00
Paul Holden
8b31c6580e
Tidy how the debug UI is toggled, and link lil-gui visibility.
2023-10-15 13:54:19 +01:00
Paul Holden
08dbb08ee3
New build.
2023-10-15 13:54:19 +01:00
Paul Holden
03f80b9a92
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 13:54:18 +01:00
Paul Holden
5ffed6fba9
Clear the background with magenta when debugging.
2023-10-15 13:54:18 +01:00
Paul Holden
f75103da41
Timeline improvements:
...
* Record more events
* Separate track for AI DMAs
2023-10-15 13:54:18 +01:00
Paul Holden
52c370a1ff
Flesh out timeline UI.
2023-10-15 13:54:18 +01:00
Paul Holden
4a76423ad7
n64js is no longer used.
2023-10-15 13:54:18 +01:00
Paul Holden
2a411f67f7
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-15 13:54:18 +01:00
Paul Holden
98a61e9fed
Untangle cpu initialisation a bit.
2023-10-15 13:54:18 +01:00
Paul Holden
32df710017
Hoist out hardware as a local variable.
2023-10-15 13:54:18 +01:00
Paul Holden
8422b67336
Update TODO.
2023-10-15 13:54:18 +01:00
Paul Holden
0f71dd42e4
Skip unprintable characters.
2023-10-15 13:54:18 +01:00
Paul Holden
462dda09b6
Call this.verticalBlank directly.
2023-10-15 13:54:18 +01:00
Paul Holden
d30931422d
Remove n64js.verticalBlank and just call hardware.verticalBlank directly.
2023-10-15 13:54:18 +01:00
Paul Holden
2f93806592
Implement texrect for S2DEX 1.0.
2023-10-15 13:54:18 +01:00
Paul Holden
41aaf9adc5
Fix s2dex filename.
2023-10-15 13:54:18 +01:00
Paul Holden
85a8d47302
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-15 13:54:18 +01:00
Paul Holden
952c4b81e0
Implement loadTLUT using TextureImage.
2023-10-15 13:54:18 +01:00
Paul Holden
b197638de8
Format.
2023-10-15 13:54:18 +01:00
Paul Holden
d32f7ccbfc
Implement loadBlock using TextureImage.
2023-10-15 13:54:18 +01:00
Paul Holden
5618b63a47
Rebuild n64.min.js.
2023-10-15 13:54:18 +01:00
Paul Holden
39cfb9186b
Add debugging tip back to loadTile.
2023-10-15 13:54:18 +01:00
Paul Holden
a8b5d49c30
Provide a way to halt on display lists other than the first of each frame.
2023-10-15 13:54:18 +01:00
Paul Holden
7a2e635e04
Implement loadTile in terms of uls, ult, lrs, lrt.
2023-10-15 13:54:18 +01:00
Paul Holden
9a44c0ba02
Move rowBytes calculation to loadTile.
2023-10-15 13:54:18 +01:00
Paul Holden
5d89306292
Move tmemStride to loadTile.
2023-10-15 13:54:18 +01:00
Paul Holden
d9bffe8721
Start moving logic involving TextureImage to loadTile.
2023-10-15 13:54:18 +01:00
Paul Holden
656d1bfc70
Fix S2DEX loadTile.
2023-10-15 13:54:18 +01:00
Paul Holden
981dfa5e03
Consider uls (which is normally zero but doesn't have to be) in loadBlock.
2023-10-15 13:54:18 +01:00
Paul Holden
a650e8fdee
Add a note about memrect.
2023-10-15 13:54:18 +01:00
Paul Holden
a1e751b550
Fix SetTextureImage size.
2023-10-15 13:54:18 +01:00
Paul Holden
8217c740e7
Fix debug output.
2023-10-15 13:54:17 +01:00
Paul Holden
f2dbc36ea3
Add debug option to dump microcode.
2023-10-15 13:54:17 +01:00
Paul Holden
acae29a649
Improve accuracy of S2DEX texture loading.
2023-10-15 13:54:17 +01:00
Paul Holden
c5210cff42
Show texture image state.
2023-10-15 13:54:17 +01:00
Paul Holden
4c600ee037
Refresh tabs when they are selected.
2023-10-15 13:54:17 +01:00
Paul Holden
736a397461
Fix args to disassembleRange.
2023-10-15 13:54:17 +01:00
Paul Holden
742657d031
RSP disassembly fixes.
2023-10-15 13:54:17 +01:00
Paul Holden
d918b5d2d6
Unused var.
2023-10-15 13:54:17 +01:00
Paul Holden
dbd9553177
Show elements for SBV, SSV etc.
2023-10-15 13:54:17 +01:00
Paul Holden
9575e18ff1
Fix RSP disassembly - baseAddr and offset were swapped.
2023-10-15 13:54:17 +01:00
Paul Holden
a9e6d5efde
Fix RSP disassembler scrolling and page up.
2023-10-15 13:54:17 +01:00
Paul Holden
dae6f3bdbf
Disassemble RSP imem relative to 0x1000.
...
This lines up better with jump table instructions.
2023-10-15 13:54:17 +01:00
Paul Holden
b3da5fc548
Add a helper for dumping RSPTask code.
2023-10-15 13:54:17 +01:00
Paul Holden
400d427071
Fix RSP scalar/vector/task tabs.
2023-10-15 13:54:17 +01:00
Paul Holden
3a6f1500e3
kRenderNoRotation seems correct.
2023-10-15 13:54:17 +01:00
Paul Holden
6e6ce4e3bc
Tidy
2023-10-15 13:54:17 +01:00
Paul Holden
3927f88571
Avoid constructing some dataviews.
2023-10-15 13:54:17 +01:00