Comparison between Kernal Draw line and VERA FX

For Scene Demos that display animations, graphics, and music. Also for tech demos of graphics capability of VERA or the audio capabilities of the PSG, FM, or PCM audio channels.
Post Reply
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

Comparison between Kernal Draw line and VERA FX

Post by unartic »

Here is a speed comparison between the kernal function to draw a line (GRAPH_draw_line) and drawing lines using the VERA FX line draw helper.

Kernal version
Try It Now!

VERA FX version
Try It Now!


Downloads, including source
verafx.prg
(7.55 KiB) Downloaded 115 times
verafx.bas
(608 Bytes) Downloaded 94 times
kernal.prg
(6.84 KiB) Downloaded 115 times
kernal.bas
(610 Bytes) Downloaded 84 times

note: source code is for my new basic compiler, just as a reference.
User avatar
desertfish
Posts: 1096
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: Comparison between Kernal Draw line and VERA FX

Post by desertfish »

"Where sauce" :D (of that vera fx line draw routine)

I still haven't puzzled out how to do the line drawing helper in verafx myself. I find it a tough one to crack.
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

Re: Comparison between Kernal Draw line and VERA FX

Post by unartic »

I might post a YouTube video about the process and everything that needs to be done and how it works.
mortarm
Posts: 299
Joined: Tue May 16, 2023 6:21 pm

Re: Comparison between Kernal Draw line and VERA FX

Post by mortarm »

The VERA version is faster, but it leaves artifacts around the screen.
unartic
Posts: 145
Joined: Sat Oct 28, 2023 3:26 pm

Re: Comparison between Kernal Draw line and VERA FX

Post by unartic »

mortarm wrote: Sat Jun 29, 2024 6:56 pm The VERA version is faster, but it leaves artifacts around the screen.
Not realy an artifacts. It seems it doesn't plot every pixel in this demo. It could be just the fact that there is not enough precision.
If I draw lines with the kernal routine and verafx on top of each other, you see in many occasions that the moment they shift a pixel is not always the same between the two routines.

So I think this is 'normal' operation for VERA FX and doesn't make it any less useful :-)
Post Reply