Page 2 of 2
Posted: Wed Apr 18, 2007 8:04 am
by Derek
@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.
@GeoTrail, well I'm glad someone is getting a reasonable speed increase, thought it was just me going mad.

Posted: Wed Apr 18, 2007 8:43 am
by Psychophanta
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
Posted: Wed Apr 18, 2007 10:45 am
by GeoTrail
Mad cow? yaaaiks heheehe
Anyways, here's my laptops hardware:
AMD Turion 4 Mobile 2 GHz
256 MB ATI Xpress 1100
1 GB DDR2
Posted: Wed Apr 18, 2007 2:05 pm
by techjunkie
linexy 9
line 5
Intel Pentium M 1.70 GHz
2 GB RAM
ATI Mobility Radeon 7500 (32 MB DDR SGRAM / SDRAM, AGP 4X mode)
Posted: Wed Apr 18, 2007 4:06 pm
by MrMat
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.
Yes my debugging was in OllyDbg and it definitely is! Similar results here (but slower!):
Average linexy = 39
Average line = 27
Is anyones slower than that?!

Posted: Wed Apr 18, 2007 7:55 pm
by Derek
Well, mine is one of the slowest so I am guessing that it is governed by the graphics card but I was under the impression that graphics cards were more or less the same as far as 2D was concerned, obviously not.
Posted: Wed Apr 18, 2007 8:19 pm
by MrMat
Mine is an onboard Intel chip (i can't remember the name). It is so much slower than the Radeon 9800 i was using until it broke. The most annoying thing was having to phone Microsofts activation people just because i took the card out and Windows decided i had changed too much hardware. Grr!
Posted: Wed Apr 18, 2007 8:37 pm
by Derek
Yeah, I had that once with my old computer, at least it's a freephone number.
Re:
Posted: Sun Dec 13, 2009 12:23 am
by Psychophanta
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
In PB4.40 thing go worse sometimes:
- Average linexy = 17
Average line = 17
but other times i get:
- Average linexy = 7
Average line = 7
And by the way, WindowEvent() before StopDrawing() has problems now in the windowed screen.
Re: Don't use LineXY(), use Line() instead.
Posted: Sun Dec 13, 2009 1:09 am
by Kaeru Gaman
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...
Re: Don't use LineXY(), use Line() instead.
Posted: Sun Dec 13, 2009 10:29 am
by Michael Vogel
Kaeru 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...
Right - a lot of things have changed
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

)
Re: Don't use LineXY(), use Line() instead.
Posted: Sun Dec 13, 2009 10:37 am
by Psychophanta
Yes, things have been changed, but does someone tested the current speed of line and linexy in front of the PB4.31?
Re: Don't use LineXY(), use Line() instead.
Posted: Sun Dec 13, 2009 5:45 pm
by Kaeru Gaman
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.