Page 1 of 1
Comparison between Kernal Draw line and VERA FX
Posted: Thu Jun 27, 2024 11:53 am
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
note: source code is for my new basic compiler, just as a reference.
Re: Comparison between Kernal Draw line and VERA FX
Posted: Thu Jun 27, 2024 5:32 pm
by desertfish
"Where sauce"
(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.
Re: Comparison between Kernal Draw line and VERA FX
Posted: Thu Jun 27, 2024 5:44 pm
by unartic
I might post a YouTube video about the process and everything that needs to be done and how it works.
Re: Comparison between Kernal Draw line and VERA FX
Posted: Sat Jun 29, 2024 6:56 pm
by mortarm
The VERA version is faster, but it leaves artifacts around the screen.
Re: Comparison between Kernal Draw line and VERA FX
Posted: Sat Jun 29, 2024 8:18 pm
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