Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) 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: 1370
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: 11100
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: 11100
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
DJ Space
Smasher/F4CG
Guests online: 111
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 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

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