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 > upscroll: fast code needed.
2012-03-31 10:58
Flavioweb

Registered: Nov 2011
Posts: 447
upscroll: fast code needed.

i'm coding a fullscreen smooth up scroller.
Actually i'm using some unrolled code to use minimum amount of cycles, but i want to know if there is a well-know method to achehive best results.
Someone can point me in the right direction?
 
... 10 posts hidden. Click here to view all posts....
 
2012-04-01 06:12
yago

Registered: May 2002
Posts: 332
There is also a way to upscroll without any CPU usage.

You set up every 8 lines an rasterinterrupt, which changes the vic-bank/characterset/screen.

The details are a bit complicated, but then you only need to scroll the colorram.

I have used it in the Drowned Church Part in FLUT.
2012-04-01 07:21
Flavioweb

Registered: Nov 2011
Posts: 447
Quote: There is also a way to upscroll without any CPU usage.

You set up every 8 lines an rasterinterrupt, which changes the vic-bank/characterset/screen.

The details are a bit complicated, but then you only need to scroll the colorram.

I have used it in the Drowned Church Part in FLUT.


i wil give a look at your work, but we are details-hungry here...
;)
2012-04-01 07:52
Repose

Registered: Oct 2010
Posts: 222
I was going to say the same thing. I had considered this raster method to scroll quickly an 80 column screen using custom charsets. You can scroll 80 column text at 9600 baud this way. Just sayin'.
2012-04-01 10:57
Bitbreaker

Registered: Oct 2002
Posts: 501
@flavioweb

no need to trigger an irq each 8 lines, it would most likely also be enough to start copying late enough so that you don't overtake the raster with your copy action (and cause a glitch by that). Just start at let's say $80 first and in case decrease or increase that value, until things look okay. Then you have all the remaining rastertime free in one block.

The other solutions are of course also doable and need way less rastertime, but have a bigger memory footprint. So it is up to you what is needed more :-)
2012-04-02 07:55
yago

Registered: May 2002
Posts: 332
Yes, iirc, the 8th-line upscroller requires 16k alone for the bitmap. Some memory left here and there for sprites, but using them requires more complicated irqs.

the "raw cpu" method is surely better for games
Previous - 1 | 2 - Next
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
Flavioweb/🇮🇹HF..
Guests online: 80
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 No Bounds  (9.6)
7 Comaland 100%  (9.6)
8 Aliens in Wonderland  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Happy Birthday Dr.J  (9.7)
2 Layers  (9.6)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Party Elk 2  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (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.041 sec.