@GeoTrail, well I'm glad someone is getting a reasonable speed increase, thought it was just me going mad.
Don't use LineXY(), use Line() instead.
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
-
techjunkie
- Addict

- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Yes my debugging was in OllyDbg and it definitely is! Similar results here (but slower!):Derek wrote:@MrMat, I found earlier that if I plot() the last pixel then linexy() works out at about the same time as line() so that is probably what is happening internally, like you said.
Is anyones slower than that?!Average linexy = 39
Average line = 27
Mat
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re:
In PB4.40 thing go worse sometimes:Psychophanta wrote:On Derek's last example I got the following on a laptop with sis VGA and AMD sempron 3000+
- Average linexy = 17
Average line = 5
- Average linexy = 17
Average line = 17
- Average linexy = 7
Average line = 7
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: Don't use LineXY(), use Line() instead.
since drawing was completely changed, the whole thread became obsolete.
now LineXY() and Line() use the same algorithm, but Line() no longer draws lines with width or heigth 0.
oh, and btw...
when you want to test performance, make sure results are above 100ms.
results like "7 or 17" are just "one or two timeslices", that's just a marginal difference depending on coincidence...
now LineXY() and Line() use the same algorithm, but Line() no longer draws lines with width or heigth 0.
oh, and btw...
when you want to test performance, make sure results are above 100ms.
results like "7 or 17" are just "one or two timeslices", that's just a marginal difference depending on coincidence...
oh... and have a nice day.
- Michael Vogel
- Addict

- Posts: 2848
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: Don't use LineXY(), use Line() instead.
Right - a lot of things have changedKaeru Gaman wrote:since drawing was completely changed, the whole thread became obsolete.
now LineXY() and Line() use the same algorithm, but Line() no longer draws lines with width or heigth 0.
oh, and btw...
when you want to test performance, make sure results are above 100ms.
results like "7 or 17" are just "one or two timeslices", that's just a marginal difference depending on coincidence...
Hopefully the help file will be corrected, because the description of the "target point" is wrong (some say, this is the only right thing with Line now
- Psychophanta
- Always Here

- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: Don't use LineXY(), use Line() instead.
Yes, things have been changed, but does someone tested the current speed of line and linexy in front of the PB4.31?
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: Don't use LineXY(), use Line() instead.
I have the confirmation from Fred himself that the Routine now is identical only the call ist slightly different.
you can search the forums, somewhere in to Line-topics he said so.
the old LineXY had an additional call of Plot to put the ending dot, so it was slower.
you can search the forums, somewhere in to Line-topics he said so.
the old LineXY had an additional call of Plot to put the ending dot, so it was slower.
oh... and have a nice day.

