View Single Post
Old 18 October 2021, 22:26   #15
Antiriad_UK
OCS forever!
 
Antiriad_UK's Avatar
 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 418
Quote:
Originally Posted by DanScott View Post
That's going to be horrendously slow though.

The quickest way to do a tall sine scroll (for example, font is 128 pixels high), is to plot the vertical edge points with the CPU, and then blitter vertical XOR fill. You can be filling the previous buffer while the CPU is plotting the next set of spans.

Another option is to use an animated font (sounds crazy, but does work.. have a look at Vision - "Can't Be" demo for a good example). This is probably the absolute fastest way possible.

[ Show youtube player ]
Plotting with the CPU, must admit I didn't think of that. Are you like tracking the x,y of each set of vertical points and "scrolling" them left - I guess you can do that quickly? I did my big sine (with your help) just with the usual blitter columns and a big modulo to skip all the lines in between - never crossed my mind to try and plot with CPU
Antiriad_UK is offline  
 
Page generated in 0.09173 seconds with 11 queries