2 ms·
Can you elaborate more on the hardware smooth scrolling? Did the C64 allow you to set global character offset or was it something else?
by zamadatix 8y ago
Can you elaborate more on the hardware smooth scrolling? Did the C64 allow you to set global character offset or was it something else?
- tinus_hn 8y agoYou can set a 0-7 pixel offset horizontally and vertically. Programming smooth scrolling is still really difficult though because the processor is pretty slow, scrolling the screen left one character takes a lot of raster time.
- vidarh 8y agoYou'd use custom character sets to get you a tiled display of 8x8 or 4x8 pixels (depending on colour mode; 4x8 used two bits per pixel to specify one of two foreground colour specific to the character, or the global background colour), so the display would usually be text (almost no games used the bitmap modes). So you're copying at most 2000 bytes (40x25 characters + colour) for every 8/4 pixels scrolled. If you're willing to sacrifice a sprite + a raster interrupt every 48 scanlines to cover and narrow the visible area of the screen a bit more, you can reduce the amount of copying even more. Same by not using the full height of the display, as is the case here. After having a C64 growing up it was always painful to see stuttering scroll, as it was inconceivable to not have proper smooth scrolling in most C64 games or demos.