Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums


Forums > C64 Coding > 1 char wide gray area when repeating chars
2018-09-07 16:41
Golara

Registered: Jan 2018
Posts: 97
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: 856
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
Groepaz

Registered: Dec 2001
Posts: 8904
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

Registered: Jan 2018
Posts: 97
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
Groepaz

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

Registered: Jan 2018
Posts: 97
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
Bieno/Commodore Plus
Axis/Oxyron
ghost/excess
pcollins/Excess
Gadget MCS/M.C.S.
Golara
uctumi/PVM/HF
TMA/Abyss-Connection
JEZ
Guests online: 42
Top Demos
1 Uncensored  (9.7)
2 Comaland 100%  (9.7)
3 Unboxed  (9.7)
4 Edge of Disgrace  (9.7)
5 Coma Light 13  (9.6)
6 The Shores of Reflec..  (9.6)
7 Old Men in Used Cars  (9.6)
8 C=Bit 18  (9.6)
9 Wonderland XII  (9.6)
10 Lunatico  (9.6)
Top onefile Demos
1 Arok 20 Invitation  (9.6)
2 FMX Music Demo  (9.6)
3 Rewind  (9.6)
4 Daah, Those Acid Pil..  (9.6)
5 Merry Xmas 2017  (9.5)
6 Crystal Gazer  (9.5)
7 Pandemoniac Part 2 o..  (9.5)
8 Official X2018 Report  (9.5)
9 Party Horse  (9.4)
10 Dawnfall V1.1  (9.4)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.3)
5 Arsenic  (9.3)
Top Original Suppliers
1 hedning  (9.7)
2 Derbyshire Ram  (9.3)
3 Jazzcat  (9.1)
4 Irata  (9.0)
5 Fungus  (9.0)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 0.053 sec.