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 > how big can a bitmap scroller be ??
2010-09-07 19:17
turtle
Account closed

Registered: Mar 2005
Posts: 44
how big can a bitmap scroller be ??


trying to make a bitmap scroller.

but it eat to much raster time.

can make it 4 x 5 char bigg.

is there any tricks =) ??

use

!for i,5 {
!for a,8 {

lda $2008+(320*(i-1))+(a-1)
sta $2000+(320*(i-1))+(a-1)
lda $2010+(320*(i-1))+(a-1)
sta $2008+(320*(i-1))+(a-1)
lda $2018+(320*(i-1))+(a-1)
sta $2010+(320*(i-1))+(a-1)
lda $2020+(320*(i-1))+(a-1)
sta $2018+(320*(i-1))+(a-1)
.
.
.
.
.
.
.
.
}}
2010-09-07 19:25
Frantic

Registered: Mar 2003
Posts: 1648
Did you check:

http://codebase64.org/doku.php?id=base:vic#screen (under the "movement" heading)

?
2010-09-07 19:54
Monte Carlos

Registered: Jun 2004
Posts: 359
Depends on how fast the scroller should be (how many pixels per frame). With one pixel per frame, you have 8 (8*18600 cycles) frames to scroll the bitmap using double buffering, which is enough to do software scrolling (320*25*8<8*18600).
With small borders you have a 39x24 cursor wide area visible.
There is enough time for loops, so no need to place code for copying every single byte. With two pixels per frame you have 4x18600 cycles to softscroll the bitmap, which is still enough time. For faster movements you need hardware scrolling, which needs 25 rasterlines on top of the screen for vertical movement and 8 lines for horizontal movement.
2010-09-07 20:09
turtle
Account closed

Registered: Mar 2005
Posts: 44

it is a char set paintet in amica paint

5 char high. ( 5 * 8 = 40 line)

****************************************2000
****************************************
****************************************
****************************************
**************************************** -2640

charet $4000
char + col $0400 + $d800

do some smoot scroll
so have to move memory from $2000 - $2640
move char + col
and then put a new char to the right.


that eat raster time.
2010-09-07 20:10
turtle
Account closed

Registered: Mar 2005
Posts: 44
2010-09-07 20:27
Mr. SID

Registered: Jan 2003
Posts: 424
Sounds like a job for VSP, see the codebase64 link above...
2010-09-07 20:34
Frantic

Registered: Mar 2003
Posts: 1648
Regarding double buffering and such, there is some stuff written on that topic in the following articles:

http://codebase64.org/doku.php?id=base:rant4
http://codebase64.org/doku.php?id=base:rant11#free_anydirection..

...which may perhaps serve as inspiration in case you don't go for the VSP kind of solution?

Dunno if you can save some time by doing some sort of triple (or more) buffer system so you'll do:

LDA buff1
STA buff2
STA buff3

i.e., copying to two frame-buffers at once, so you reduce the need to do an LDA for every STA..

rather than
LDA buff1
STA buff2
..and then:
LDA buff2
STA buff1

...in case that might lead to an overall reduction in cycle consumption or so, in case you initialize the routine by copying some frame ahead in order to avoid the initial peak of cycles that would otherwise appear during the first frame. I didn't really think this through though, so there might be some problem with this approach.. In either case, color RAM data of course has to be shuffled in a timely manner.
2010-09-08 11:06
Shadow
Account closed

Registered: Apr 2002
Posts: 355
Quote: Sounds like a job for VSP, see the codebase64 link above...

Noooo... VSP is the devil, don't use it! Infact, VSP should be banned from all C64 productions.
(That statement may or may not have anything to do with the fact that my C64 is very prone to VSP crashes... :D)
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
Acidchild/Padua
ΛΛdZ
Chesser/Blazon
Scrap/Genesis Project
AMB/Level 64
The Syndrom/TIA/Pret..
Wayne Kerr/Flashtro
Guests online: 102
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 Triad  (9.3)
5 Censor Design  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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