Edit until MSI Comp over XD
You know this would be perfect for MSI... lolAlthough it probably wouldn't be noticed there atm because of the competition.
Good work though I'll test and see what I can for you.
[FONT="Garamond"][SIZE="3"]
Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
[/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]
[QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
[CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]
Hey Another thing I noticed although it may not matter Inc is actually slower than Var:= Var + 1. Just a little tidbit of information. Also I suggest making RockCol an array of Integer that seems to make people happy nowadays, also would probably be more effective in this case as well.
Also for
SCAR Code:repeat
Inc(rCount);
Tol:= rCount mod 2;
if (FindColorSpiralTolerance(rx, ry, RockCol, RockX - 15, RockY - 15, RockX + 15, Rocky + 15, Tol))then
break;
until(rCount >= 30);
why not just make it
SCAR Code:repeat
rCount:= rCount + 1;
if(FindColorSpiralTolerance(rx, ry, RockCol, RockX - 15, RockY - 15, RockX + 15, Rocky + 15, rCount))then
Break;
until(rCount >= 15);
other than that it looks good, I still need to test though.
[FONT="Garamond"][SIZE="3"]
Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
[/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]
No, actually, Var:= Var + 1 is slower. I'm guessing that the Inc function is coded in assembler.
EX (This is Delphi code, it won't work in scar):
SCAR Code:function Inc(Var: Integer): Integer;
asm
INC Var
end;
Also, I don't really see why this would be hard for people to make :\
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
Hrmm... Well When I tested it Var:= Var + 1 was faster for me. Here try it once for me and tell me your numbers. Hmmm... Well i tested it just now, for Inc(i) got from 219 - 266ms and for i:= i + 1 i got 216 - 235ms. (Both are from 0 - 100,000).
I thought Inc would be faster too, because it is a direct command, but from what I've seen i:= i + 1 was faster.
[FONT="Garamond"][SIZE="3"]
Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
[/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]
What was so special about this one?
I didn't get to see it.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
he forgot that he cant show stuuf he's using in the MSI competition
In the new version, freddy added a Inc that increases every value you put in, probably a ASM one.. I guess its slower because you need to call a method very time, that takes up a lot of time if you do it millions of times'Pretty sure about it'. Also in delphi Inc for integers is slower than Int := Int + 1.. I might be wrong.. But i timed them ^^
~Raymond
Verrekte Koekwous
R0b0t, Inc is slower in SCAR.
In delphi, it's the same speed.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
[FONT="Garamond"][SIZE="3"]
Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
[/SIZE][/FONT][URL="http://www.villavu.com/forum/forumdisplay.php?f=125"][IMG]http://i40.tinypic.com/r1lzdv.jpg[/IMG][/URL]
I got one which is one line long...
Administrator's Warning:
Well aren't you so special Sumilion :P.
Guess i'll have to wait for the comp. to be over before i can look at it.
I like my coffee black just like my metal.
There are currently 1 users browsing this thread. (0 members and 1 guests)