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 > 1 char wide gray area when repeating chars
2018-09-07 16:41
Golara
Account closed

Registered: Jan 2018
Posts: 212
1 char wide gray area when repeating chars

I was trying to avoid badlines in my raster code but accidentally got the repeating chars, which I thought was cool because now I could also display some single color bitmap... and it works, but there's a 1 char wide gray area, like FLI bug ? Is it normal ? Can it be avoided ? Can't cover it up with sprites.
2018-09-07 19:33
ChristopherJam

Registered: Aug 2004
Posts: 1409
Perhaps try moving the d011 write that triggers the DMA at the top of the screen to one cycle earlier?

(assuming of course you're doing any DMA per frame at all, rather than inheriting character data from the last frame before you start the effect)

Alternately, use a multicolour bitmap and just set the pixels in the first column to zero, or use character mode and clear the character definition for character #255.
2018-09-07 19:59
chatGPZ

Registered: Dec 2001
Posts: 11386
hard to tell without seeing the code... but indeed, moving the d011 write is probably the way to go. if that alone doesnt help, try making the per-line timing one cycle shorter
2018-09-07 20:04
Golara
Account closed

Registered: Jan 2018
Posts: 212
Quote: Perhaps try moving the d011 write that triggers the DMA at the top of the screen to one cycle earlier?

(assuming of course you're doing any DMA per frame at all, rather than inheriting character data from the last frame before you start the effect)

Alternately, use a multicolour bitmap and just set the pixels in the first column to zero, or use character mode and clear the character definition for character #255.


I'm doing it in the middle of the screen, I'm repeating 10th line of chars. 9 above display a logo.

I removed one nop before the raster loop and now it is flashing like I have unstable raster.... and turns out it is... moved the irq but didn't change the line number to compare when loosing the last jitter cycle. Thanks for the suggestion.

This mode is really cool, it would be amazing if it was an intended feature, like flip this bit to get one badline per screen and you can have bitmap with the same colors.

EDIT. If you're thinking "why did you post before doing the obvious, changing the timing a little bit". I did, but inside the raster loop, moving the d011 write about, thought my raster is stable and the loop always starts at the beggining of the line. Feel stupid man
2018-09-07 20:09
chatGPZ

Registered: Dec 2001
Posts: 11386
remember that if you somehow trigger a DMA ("FLI") then the timing _is_ stable all of a sudden :)
2018-09-07 20:13
Golara
Account closed

Registered: Jan 2018
Posts: 212
Quote: remember that if you somehow trigger a DMA ("FLI") then the timing _is_ stable all of a sudden :)

Yeah, I've read about it (and it makes sence since vic takes away the control and you gain it back exactly in the right border) but didn't use it yet. Maybe for the next part.
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
lotus_skylight
alien^pdx/desire, ti..
Chesser/Blazon
Didi/Laxity
Shogoon/Elysium/MSL
Guests online: 106
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 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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