Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > multiplexer question
2008-12-12 00:46
Codey

Registered: Oct 2005
Posts: 79
multiplexer question

once displaying a sprite, do you have to wait a full 21 scanlines before displaying a new image of the same sprite?
2008-12-12 01:03
ptoing

Registered: Sep 2005
Posts: 271
Eh? Afaik you can have 8 sprites per scanline, if they overlap does not matter at all. I think.

Some coder will probably explain it properly.
2008-12-12 01:34
doynax
Account closed

Registered: Oct 2004
Posts: 212
Right, you'll have to wait until the end of the last sprite before the channel can be reused somewhere else further down. That is you cannot arbitrarily break off a sprite in order to display something else, nor can you make the VIC chip render the same channel twice on a single scanline (in any meaningful way.)
The VIC triggers the display of a sprite by comparing the current scanline to the sprite's y-coordinate, and that's the registers only function. And unlike the other attributes (e.g. x-coordinate, shape, color, and so forth) rewriting the y-coordinate in the middle of a previous sprite instance has no immediate effect. In other words if you set a new y coordinate less than 21 lines down from the last one the VIC simply won't display anything at all.

Technically you can also cut down the height of a sprite down to 17 scanlines by toggling y-expansion at just the right cycles, but that's of little practical use for a general-purpose multiplexer.
2008-12-12 01:47
ptoing

Registered: Sep 2005
Posts: 271
Ah, now I get what he meant. Heh, feeling stupid T_T
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Linus/MSL
rambo/Therapy/ Resou..
tecM0/Plush
cobbpg
Strepto/Lethargy
Guests online: 174
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.033 sec.