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 > A question about resolution and refresh rate
2014-10-07 06:46
Parody

Registered: Jul 2013
Posts: 7
A question about resolution and refresh rate

I have a question, in the form of a set of assumptions, and I hope you will correct me if I'm wrong. :)

The old PAL TV-system had 576 visible lines, each drawn every other 1/50th second (576i 50Hz). The PAL C64 has 200 lines inside the border, so I assume that every C64-line covers two TV-lines. Then, on the TV the two lines that make up the C64-line will be drawn up every other, and opposite, 1/50th of a second. That is, one line is drawn one 1/50th of a second and the other line is drawn up the next 1/50th of a second and so one. The C64 will give you 50 raster interrupts on, let say, line 60 each second (or close enough). So, would this mean that by changing the contents of a line every 1/50th of a second in a raster interrupt you could effectively double the vertical resolution?

Have I understood it correctly? Is what I'm describing FLI?
 
... 2 posts hidden. Click here to view all posts....
 
2014-10-07 07:22
Parody

Registered: Jul 2013
Posts: 7
Thank you for the replies! :)

So, if the C64 only uses one field and then effectively only updates the screen every 1/25th second, does that mean that you only get 25 raster interrupts on a line every second?

...or, do you get 50 raster interrupts, but that every other raster interrupt has no immediate effect on the TV?
2014-10-07 07:24
chatGPZ

Registered: Dec 2001
Posts: 11386
every 50th of second a full frame is shown, and you get 50 interrupts per second
2014-10-07 07:33
Parody

Registered: Jul 2013
Posts: 7
Good! So, you get 50 interrupts every second. :)

...but, I don't understand how you can show a full "frame" every 50th of a second if you only use every other line. As I understand it old TVs were interlace and showed a set of every other line one 50th of a second, and the other set of every other line the next 50th of a second, and so on. If you then only use one of these sets of every other line then you should get an effective screen update every 25th of a second. Surely old TVs were not capable of progressive scan...?
2014-10-07 07:40
chatGPZ

Registered: Dec 2001
Posts: 11386
15khz monitors always show 288 lines per frame (50 times a second), with every other line left blank. whether every other frame is offset by one line depends on the video signal, its not a feature of the monitor.
2014-10-07 07:48
Parody

Registered: Jul 2013
Posts: 7
Ah, ok, I think I understand now. So, the C64 could via the video signal tell the TV or monitor to display the same field every 1/50th of a second, instead of the every other field pattern of normal TV at the time. You have enlightened me! :)
2014-10-07 08:19
lft

Registered: Jul 2007
Posts: 369
What groepaz said. The television set needs a way to distinguish odd fields from even fields, otherwise it could end up displaying them in the wrong order, and that would look like a really badly de-interlaced dvd rip. Thus, every field is marked with an odd/even identifier.

However! That explanation makes sense to us in the digital era, but television is much older than that.



Here's what really happens:

The electron beam is guided to a position on the screen using the horizontal and vertical components of a magnetic field. The important insight is that these components are handled completely independently. Horizontally, the beam sweeps at a constant rate from left to right, and is reset by horizontal sync pulses. Vertically, the beam sweeps at a slower constant rate from top to bottom, and is reset by vertical sync pulses. As a consequence, the rasterlines are actually slightly diagonal, at least in terms of the independent horizontal/vertical axes of the beam director. But in many tv models, the beam guiding apparatus is physically tilted to compensate (although this creates a slight amount of shearing instead).

It follows that by changing the time delay between the vertical sync pulse and the following horizontal sync pulse, it is possible to adjust the vertical position of the image. This is indeed how interlace is implemented. The c64 (and Amiga in non-interlaced modes, and many consoles) maintains a constant time delay between the vertical sync and the first horizontal sync, and this effectively results in a progressive display with visible gaps between the scanlines.

The trouble nowadays is that monitors try to be clever and make assumptions about the signal in order to clean it up. Partly, this is necessary in order to de-interlace the signal and resample it for the internal frame rate of the LCD. But depending on the algorithm used, this may not work well (or at all) with a signal consisting of only odd fields.
2014-10-07 08:23
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
with a signal consisting of only odd fields

you mean, with a signal where field = frame. there is no odd/even frames at all :)
2014-10-07 08:34
AmiDog

Registered: Mar 2003
Posts: 97
I suggest googling for 240p. For example this page does offer some insight into the progressive signals of older game consoles and computers.
2014-10-07 08:51
lft

Registered: Jul 2007
Posts: 369
Quoting Groepaz
Quote:
with a signal consisting of only odd fields

you mean, with a signal where field = frame. there is no odd/even frames at all :)


For somebody who is accustomed to the standard PAL signal, I'm sure that the fields generated by the VIC are quite odd.
2014-10-07 09:42
chatGPZ

Registered: Dec 2001
Posts: 11386
indeed =D
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
csabanw
Magic/Nah-Kolor
psych
JackAsser/Booze Design
bepp/ΤRIΛD
Guests online: 115
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 Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

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