| |
Kickback
Registered: Apr 2004 Posts: 97 |
Fastest Hires Vector filler
I know this has been mentioned somewhere? Or maybe not? Anyhow I was wondering what is the best approach to hires vector filling?
When I say hires, I mean full blown, full screen vectors. I know the ol' xor trick, but doing this on a hires would suck up ALOT of timing? No?
Also is it even POSSIBLE to do a full screen? Or just to take a chuck out of the hires and fill it that way? Kinda the way you do with the 16x16 matrix?
This would seem to eat up alot of time on the hires?
Taking this ever FURTHER, whatever approach is mentioned, would it be possible to use that technique on say a FLI screen? Not as big obviously for obvious reason.
Any takers??? Graham? Krill? Oswald? Ninja??? Anyone???
|
|
| |
ready.
Registered: Feb 2003 Posts: 441 |
In my 16x16 chars filled vector part used in Crepuscolo/Level64:
lda #$ff
.......
sta addr x
sta addr x+1
sta addr x+2
........
the code would draw the border lines first and then set some JMPs and RTSs in the middle of the code above (self modifing code). The same code above is also used to clear the screen by setting lda #0. But when the screen is cleared all the sta addr are executed, not just parts of them, as it occurs when filling with #$ff
Maybe same approach could be used with bitmap fullscreen, but then the code would be a lot bigger, maybe too much. Maybe using sta addr, x.
|
| |
Madhead Account closed
Registered: Sep 2004 Posts: 18 |
if spritefilling counts check Snapshot |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
Quote: if spritefilling counts check Snapshot
and read the note on how its done. |
| |
enthusi
Registered: May 2004 Posts: 677 |
For a HiRes bitmap you could probably speed up things if you 'somehow' check for filled areas of boxed shape and merely set the colmap accordingly. So you clean the bitmap with 00 and when you need a filled 8x8 block merely set the colmap to its inverse. The pixel based drawing would be limited to the rims of the filled area...
However I wouldnt know how to implement such thing :-)
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
you dont need any special shape, just set both color nibbles. |
| |
PopMilo
Registered: Mar 2004 Posts: 146 |
Quote: if spritefilling counts check Snapshot
That is a brilliant idea!!!
And I thought I knew everything about Vic possibilities... :(
I wonder what other effects are possible using similar sprite manipulation?
|