Commit Graph

482 Commits

Author SHA1 Message Date
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 7aec32ced5 Update demo to leverage BG1 scanline support 2023-03-11 03:42:23 -06:00
Lucas Scharenbroich 065603a758 Core updates for BG1 scanline support 2023-03-11 03:41:41 -06:00
Lucas Scharenbroich d31bd30649 Implement full per-scanline offset support for BG1 2023-03-11 03:41:12 -06:00
Lucas Scharenbroich 7dd690ac04 Implement fix for scanline mode compensation in BG1 2023-03-10 19:00:26 -06:00
Lucas Scharenbroich 9021ee4506 WIP of BG1 scanline effects
A static BG1 is stable with BG0 offset values.  A seam in BG1
needs to be closed up by taking into account the BG1XOrigin value
when setting the :shift_value.

Also, several routines were hard-coded for the scanline case.  These
hanges need to be reverted and properly parametereized.
2023-03-10 15:50:42 -06:00
Lucas Scharenbroich 5cfefc350c Improve per-scanline demo 2023-03-09 16:17:55 -06:00
Lucas Scharenbroich e3409f92fa Add per-scanline offset rendering. 2023-03-09 15:29:58 -06:00
Lucas Scharenbroich 899c6c9770 Upgrade to lockfile version 2 2023-03-09 09:19:10 -06:00
Lucas Scharenbroich 070d038f06 Merge branch 'master' into scanline-offsets 2023-03-09 00:32:03 -06:00
Lucas Scharenbroich c04bf0d323 Add new render flags to the docs 2023-03-09 00:31:45 -06:00
Lucas Scharenbroich 9fba232df0 Minor cleanups 2023-03-09 00:27:03 -06:00
Lucas Scharenbroich 3a78398ea7 Remove dead label 2023-03-09 00:26:31 -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 c533d846d7 Be more cautious when manipulaitng the sorted list 2023-03-08 20:09:57 -06:00
Lucas Scharenbroich 6c5e133b17 Fix some linked-list manipulations 2023-03-08 16:29:12 -06:00
Lucas Scharenbroich 029ab62f0c Fix accidental double-addition of the screen origin 2023-03-08 14:15:11 -06:00
Lucas Scharenbroich a70412211c Simplify and specialize the even/odd patching
Allows the odd case to be slightly more efficient and the
code is cleaned up by not having to handle both even and odd
alignment cases at multiple points.
2023-03-08 12:49:45 -06:00
Lucas Scharenbroich 536959619f Refine the horizontal dispatch
Find small optimizations to improve the average performance of the
blitter, especially in the odd-aligned case.

 - Odd-aligned PEA exit is 2 cycles faster per line
 - Odd-aligned JMP exit is 2 cycles faster per line
 - Odd-aligned LDA exit is 6 cycles faster (eliminated long store)
 - Merged setting the entry opcode and offset to convert 2 8-bit
   store into a single 16-bit store (save 6 cycles per line)
 - Load and save the full word for the high bytes. Cost 2 cycles
   but enabled the 6 cycles saved for the LDA case.
2023-03-07 17:32:46 -06:00
Lucas Scharenbroich 85cce2fe82 Fix docs typo 2023-03-06 15:18:26 -06:00
Lucas Scharenbroich 594b36a953 Merge branch 'master' into scanline-offsets 2023-03-06 15:14:39 -06:00
Lucas Scharenbroich 011f5c0419 Doc updates 2023-03-06 15:14:22 -06:00
Lucas Scharenbroich 04681447a5 Checkpoint 2023-03-06 14:57:52 -06:00
Lucas Scharenbroich 4bfdeae6aa Update some demos to match new behaviors 2023-03-06 14:39:38 -06:00
Lucas Scharenbroich 5697737a93 Add workable overlay support to the scanline renderer 2023-03-06 14:39:23 -06:00
Lucas Scharenbroich 6832c7f405 Update dynamic tile rendered to use fixed snippets. Add DAMAGES flag for the one render that doesn't fit the mold 2023-03-03 21:44:39 -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 e2e30dfcf4 Checkpoint for initial framing for compiled sprite support 2023-02-28 11:17:43 -06:00
Lucas Scharenbroich 981182592e Shadow based rendering working in demo-5 2023-02-27 15:30:56 -06:00
Lucas Scharenbroich af6e022454 WIP for working through scanline algos 2023-02-23 19:24:09 -06:00
Lucas Scharenbroich 46a88b1d22 Sync old code 2023-02-23 19:23:03 -06:00
Lucas Scharenbroich 31ca627c14 Make sprite pre-calc rotines more specific and fix x,y argument ordering in AddSprite 2023-01-08 01:30:51 -06:00
Lucas Scharenbroich 2af4dddb8e Fix common init functions 2023-01-02 20:44:40 -06:00
Lucas Scharenbroich f8fe9e40cb Merge branch 'master' into scanline-offsets 2023-01-02 20:41:39 -06:00
Lucas Scharenbroich 48bf7145d8 Fix parameters to startup and tile init 2023-01-02 20:40:09 -06:00
Lucas Scharenbroich 50930af362 Re-add tile load 2023-01-02 20:39:40 -06:00
Lucas Scharenbroich 4b50fa8318 checkpoint 2023-01-02 11:04:26 -06:00
Lucas Scharenbroich 50b15a8276 Merge branch 'master' into scanline-offsets 2022-12-04 15:49:47 -06:00
Lucas Scharenbroich 4ea9b5c775
Merge pull request #18 from lscharen/dependabot/bundler/docs/nokogiri-1.13.9
Bump nokogiri from 1.12.5 to 1.13.9 in /docs
2022-11-24 09:28:54 -06:00
Lucas Scharenbroich ff542c9575 Update docs for GTELoadTileSet 2022-11-24 09:26:26 -06:00
dependabot[bot] f0110acd84
Bump nokogiri from 1.12.5 to 1.13.9 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.12.5 to 1.13.9.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.12.5...v1.13.9)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21 03:42:50 +00:00
Lucas Scharenbroich b8a7641307 Add in all linked list operations 2022-09-08 21:51:00 -05:00
Lucas Scharenbroich eaedee546e Remove dead / obsolete code 2022-09-02 20:38:10 -05:00
Lucas Scharenbroich 217a1176a9 Remove obsolete blitter routines 2022-09-02 20:37:26 -05:00
Lucas Scharenbroich 33da3d4a97 Final clean up 2022-08-27 19:51:31 -05:00
Lucas Scharenbroich 0b31e9ead2 Addtweaked files 2022-08-27 19:24:07 -05:00
Lucas Scharenbroich 6bb2c437e3 Add C header file 2022-08-27 19:23:17 -05:00
Lucas Scharenbroich 95cf3d18bb Merge branch 'scanline-offsets' into chrisv 2022-08-27 15:55:14 -05:00
Lucas Scharenbroich 700a3124fd Fix demo-1 init 2022-08-27 15:53:48 -05:00