Draw lines [tests]

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
Post Reply
Phibrizzo
Posts: 93
Joined: 09 Nov 2022, 22:46

Draw lines [tests]

Post by Phibrizzo »

Hello :)

Last time i was wondering how fast is Gigatron.
I implemented algorithm draw lines by Bresenham's method.
This is only for tests and nothing else.
Second bline2.gt1 file draw only horizontal lines and is see how much times is needed for one line.
Change color says about end of the frame.

64k version.
http://blabla.ppa.pl/ftp/usr/Phibrizzo/ ... /bline.lha
at67
Site Admin
Posts: 654
Joined: 14 May 2018, 08:29

Re: Draw lines [tests]

Post by at67 »

In my emulator, timing errors are reported at the end of each sweep for both versions. Also version 2 try's to write to address 0.
Phibrizzo
Posts: 93
Joined: 09 Nov 2022, 22:46

Re: Draw lines [tests]

Post by Phibrizzo »

Yes, i forgot about loop, now i ok. (strange, on real hardware with DEVROM is autoloop running program)
And I did one optimalization and now is very little bit faster.
Link the same.
at67
Site Admin
Posts: 654
Joined: 14 May 2018, 08:29

Re: Draw lines [tests]

Post by at67 »

Yeah, that's better, no more timing issues and definitely noticeably faster as well, also runs fine on my new version of ROMvX0.
Phibrizzo
Posts: 93
Joined: 09 Nov 2022, 22:46

Re: Draw lines [tests]

Post by Phibrizzo »

I did some optymalizations (demoscene perverts, and how says my mentor: "Algorythm non-optimal is always wrong").
Now algorythm is shorter (182 bytes) and little bit faster too.
Link the same.
Post Reply