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 > Sprite Timing
2006-11-03 08:32
Sasq

Registered: Apr 2004
Posts: 155
Sprite Timing

One thing that is not entirly clear from the VIC-article is exactly how sprites affect the timing. There are many combinations possible and the article only brings up 2 cases - is there any other place that documents it clearer?

(It seems the first and subsequent lines are timed differently, and if you combine that with bad lines and 0-8 sprites turned on there's a lot of possible combinations...)
2006-11-03 10:02
itch

Registered: Aug 2006
Posts: 24
Me and minksler had to use the 4 upper sprites ( 4,5,6 & 7 ) in order to get a stabile side border opening. So i understand you :) If we used sprite 0-3 the border opening would not work properly. ( in the case of using 4 sprites ofcouse ).
2006-11-03 10:38
Danzig

Registered: Jun 2002
Posts: 429
ever tried sprite 1-4? ;)
2006-11-03 10:53
Style

Registered: Jun 2004
Posts: 498
its actually pretty easy to understand once you study the timing diagrams and understand the BA line.

2006-11-03 11:55
Devia

Registered: Oct 2004
Posts: 401
I wouldn't say it's easy to understand, but if you stare long enough at those fancy ASCII timing diagrams it eventually starts making sence.
2006-11-05 12:36
Sasq

Registered: Apr 2004
Posts: 155
OK I've looked a bit more at the chart and it seems like this:

When BA goes low VIC takes the bus 3 cycles later which is bascially overhead so if you only use continuous sprite numbers, each scanline would be shortened by 3+2*s cycles, where s is number of sprites used (allthough depending on the last opcode that may not be strictly true).

It also seems sprite data is fetched one line before it is displayed which means the last line of the sprite will be a normal scanline ? Or does a sprite affect 25 scanlines ?

It also means using sprites 0-3 or 4-7 should not affect how many cycles you have in a line, only where in the line the cycles are lost?

2006-11-05 12:42
Style

Registered: Jun 2004
Posts: 498
Almost exactly right, except sprites 0-3 grab cycles on the line before they are displayed, but not 4-7 (from memory). This is why you get sprite glitches in the sideborders.

yes, you should use sprites in sequence, for the very reason you mention. If you skip one, you lose the 2 cycles anyway because the BA line takes 3 anyway, so the CPU is never restarted before being stopped again.

See? clear as mud!
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
Skate/Plush
Mike
Ko-Ko
Guests online: 133
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 Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Elwix  (9.1)
5 A Life in Hell  (9.1)

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