Lucas Scharenbroich
9cc5b2e3af
Generalize to allow differrnt play field sizes
2023-07-07 15:57:46 -05:00
Lucas Scharenbroich
94dafd2093
Checkpoint
2023-06-25 21:45:34 -05:00
Lucas Scharenbroich
ef581ab97b
Fix rendering bug that cause flicker when two sprites shared a block row
2023-06-07 23:42:48 -05:00
Lucas Scharenbroich
aeb620fb7b
Added sprite and background disable control bits
2023-05-28 07:49:37 -05:00
Lucas Scharenbroich
64f7106143
Fix absolute address issue in rom
2023-05-19 20:40:52 -05:00
Lucas Scharenbroich
cb13c2ae2d
Secret sauce
2023-05-16 12:34:18 -05:00
Lucas Scharenbroich
4ee67fb8be
Add hook for VBL callback
2023-05-09 10:16:58 -05:00
Lucas Scharenbroich
b449d983ee
Checkpoint for WIP scanline render fix for overlays+sprites and user-defined tiles
2023-04-26 00:41:17 -05:00
Lucas Scharenbroich
b154bcf361
Sync up header files and add back CopyToBG1 behavior as a selectable feature
2023-03-12 15:39:41 -05:00
Lucas Scharenbroich
d31bd30649
Implement full per-scanline offset support for BG1
2023-03-11 03:41:12 -06:00
Lucas Scharenbroich
e3409f92fa
Add per-scanline offset rendering.
2023-03-09 15:29:58 -06:00
Lucas Scharenbroich
39163ea786
Expose the ability to select which rendering order to use for sprites
2023-03-09 00:23:12 -06:00
Lucas Scharenbroich
dd9ced08f1
Transition to fixed snippets
2023-03-02 23:24:03 -06:00
Lucas Scharenbroich
c14f3c7283
Functional compiled sprites in demo-5
2023-03-01 13:18:37 -06:00
Lucas Scharenbroich
981182592e
Shadow based rendering working in demo-5
2023-02-27 15:30:56 -06:00
Lucas Scharenbroich
4b50fa8318
checkpoint
2023-01-02 11:04:26 -06:00
Lucas Scharenbroich
3fce46872d
Checkpoint; blitter failing
2022-08-14 07:45:58 -05:00
Lucas Scharenbroich
e378dc6e26
Checkpoint with TF4 demo framework
2022-08-11 14:14:25 -05:00
Lucas Scharenbroich
97fa45589b
Allow GTEStartUp caller to specify whether tool is loaded as a system or user tool
2022-08-01 22:00:54 -05:00
Lucas Scharenbroich
18da2546bd
Add horizontal scaling to the background rotation
2022-07-22 02:01:34 -05:00
Lucas Scharenbroich
6c531619f9
Merge branch 'fixup-rotations' into kfest-2022
2022-07-21 23:35:53 -05:00
Lucas Scharenbroich
23f3626293
Fix issues preventing BG1 per-line offsets from working
2022-07-16 16:42:41 -05:00
Lucas Scharenbroich
0ab7fa9d81
Two layer demos
2022-07-16 15:22:23 -05:00
Lucas Scharenbroich
4506f808c9
Restore BG1 rotation code
2022-07-12 21:03:30 -05:00
Lucas Scharenbroich
e9a2b8569b
Fix drift between public macro file and internal definitions
2022-07-07 17:57:05 -05:00
Lucas Scharenbroich
182ebfd566
Set dirty render to the correct direct page and several small cleanups
2022-07-06 14:55:27 -05:00
Lucas Scharenbroich
41539ae606
Update zelda demo to use tool interface
2022-07-06 08:53:50 -05:00
Lucas Scharenbroich
d720f0ccac
Add two additional functions
2022-06-27 17:15:27 -05:00
Lucas Scharenbroich
19f73c22ed
Macro changes
2022-06-27 11:25:25 -05:00
Lucas Scharenbroich
8aafd5812b
Work to expose times via Toolset
2022-06-26 22:08:42 -05:00
Lucas Scharenbroich
78ee683ba8
Stub in a lot of the remaining functions
2022-06-25 11:17:50 -05:00
Lucas Scharenbroich
05c308d64d
Add new toolvall definition
2022-06-22 00:07:33 -05:00
Lucas Scharenbroich
83ec527b06
Make the test demo more sophisticated; multiple sprites
2022-06-01 22:24:45 -05:00
Lucas Scharenbroich
9da3616c1d
Start working to bring sprites rendering back into the pipeline
2022-05-22 23:54:47 -05:00
Lucas Scharenbroich
755ac3fbfd
Move most data storage to separate bank; fix many banking bugs
2022-05-18 21:00:06 -05:00
Lucas Scharenbroich
01e92a7b62
Update; tool is compiling while referencing new rederer pipeline
2022-05-18 00:34:25 -05:00
Lucas Scharenbroich
7f6e5d1b1f
Work checkpoint
2022-04-29 12:38:04 -05:00
Lucas Scharenbroich
d107365d79
Break up large source code files to help with dependency ordering
2022-04-25 11:32:06 -05:00
Lucas Scharenbroich
76180b6feb
Basic working user tool framework
2022-04-24 14:45:07 -05:00
Lucas Scharenbroich
bb83e7f7c5
Background rendering again
2022-02-18 20:43:55 -06:00
Lucas Scharenbroich
95058fb969
Checkpoint for sprite rewrite
...
All of the sprite rendering has been deferred down to the level of
the tile drawing. Sprites are no longer drawn/erased, but instead
a sprite sheet is generated in AddSprite and referenced by the
renderer.
Because there is no longer a single off-screen buffer that holds
a copy of all the rendered sprites, the TileStore size must be
expanded to hold a reference to the sprite data address fo each
tile. This increase in data structure size require the TileStore
to be put into its own bank and appropriate code restructuring.
The benefits to the rewrite are significant:
1. Sprites are never drawn/erased off-screen. They are only
ever drawn directly to the screen or play field.
2. The concept of "damaged" sprites is gone. Every dirty tile
automatically renders just to portion of a sprite that it
intersects.
These two properties result in a substantial increase in throughput.
2022-02-18 12:12:32 -06:00
Lucas Scharenbroich
1fe02e035c
Checkpoint
2022-02-02 10:21:31 -06:00
Lucas Scharenbroich
69ed76a65d
Optimize the simple mixed BG0/BG1 handler
...
There is enough room in the 32-byte exception handler to inline the
9-byte epilogue when generating the code sequence for mixed BG1/BG0
rendering.
This code sequence is generated once and run for as many frames as the
word appear on screen, so saving an uncondition branch (3 cycles) at the
cost of 60 cycles is probably worth it.
2021-11-22 16:56:53 -06:00
Lucas Scharenbroich
5fdb4bcf06
Fix transposed argument in macro definition; dynamic tile + sprite now working
2021-11-19 13:26:19 -06:00
Lucas Scharenbroich
b4871efe8f
Streamlining tile blitter macros
2021-11-19 13:00:59 -06:00
Lucas Scharenbroich
4c31a0d056
Reorg of exception handling code in the core blitter
...
* Moved V-flag handling outside of the 32-byte exception handler
* Switched relative branches to JMP to save a cycle per word
* Updated macros to create a full code snippet instead of assuming
certain values exist in the exception handler buffer
2021-11-19 10:24:09 -06:00
Lucas Scharenbroich
0a9eb76ab5
Checkpoint; have old Dynamic Tile Renderers working
2021-11-18 16:23:44 -06:00
Lucas Scharenbroich
ba76b0047c
Checkpoint on dynamic tile blitters
2021-11-18 15:36:36 -06:00
Lucas Scharenbroich
9a6eb45b20
Add Masked Sprite Tile blitter and fix some minor issues with the macro
2021-11-15 21:23:15 -06:00
Lucas Scharenbroich
678c9a0563
Initial shell of generalize sprite size support; just for marking the dirty tiles
2021-11-11 17:06:38 -06:00