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
rikib80
Andy/AEG
CreaMD/React
Erol
DeMOSic/MS^LSD^ONS
The Syndrom/TIA/Pret..
Nordischsound/Hokuto..
Guests online: 97
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

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