Reply to Jeckyl Gets Curb Stomped By Dat Mean 'Ol Mad Hatter

Your name:

Reply:


Posted by Onideus Mad Hatter on 01/21/07 14:52

On Sun, 21 Jan 2007 10:48:33 +1100, "Jeckyl" <noone@nowhere.com>
wrote:

>OK .. to save you the trouble (and for the benefit of anyone who may be
>deceived into thinking that hatter actually knows what he talks about),
>here's the tests and results:
>
>First one, just in case you really DO want / need the actual 6-digit hex
>string from a getPixel value (and not the R,G,B components):
>
>>>
> // a rgb color number to convert
> // note, if I change it to (say) 12345 the hatter method fails
> clr = 12345;
>
> // the first method is what hatter does
> // converts the color to a hex string
> // and prepends a "0" if required
> // (note: this fails if the red component
> // is zero.)
> t0 = getTimer();
> for (i = 0; i < 10000; i++) {
> color_pick = clr.toString(16);
> if (color_pick.length < 6) color_pick = '0' + color_pick;
> }
> t1 = getTimer();
>
> // this m,ethod pads and extracts with
> // no need for a test and does not fail
> t2 = getTimer();
> for (i = 0; i < 10000; i++) {
> color_pick = ("000000"+clr.toString(16)).substr(-6);
> }
> t3 = getTimer();
>
> hatter = t1-t0;
> jeckyl = t3-t2;
>>>
>RESULTS: hatter method takes 415 ms, my method takes 325. Any my method
>works with all possible getPixel results values .. hatters doesn't
>
>Now, if its the whole process of going from getPixel value to separate r,g,b
>values that is required, as hatter uses in the character animation swf that
>he keeps posting links to, then we can test that as well:
>
>>>
> // a rgb color number to convert
> // note, if I change it to (say) 12345 the hatter method fails
> clr = 123456;
>
> // the first method is what hatter does
> // converts the color to a hex string
> // converts that to upper case (unneeded)
> // extract hex substrings of 2 characters each
> // and converts them to numbers
> t0 = getTimer();
> for (i = 0; i < 10000; i++) {
> color_pick = clr.toString(16).toUpperCase();
> if (color_pick.length < 6) color_pick = '0' + color_pick;
> r = parseInt(color_pick.substr(0,2),16);
> g = parseInt(color_pick.substr(2,2),16);
> b = parseInt(color_pick.substr(4,2),16);
> }
> t1 = getTimer();
>
> // this is what I'd do
> // for each rgb component byte
> // mask off the bottom byte
> // then shift the value to get to the next byte
> t2 = getTimer();
> for (i = 0; i < 10000; i++) {
> tmp = clr;
> b = tmp & 255;
> tmp >>= 8;
> g = tmp & 255;
> tmp >>= 8;
> r = tmp & 255;
> }
> t3 = getTimer();
>
> hatter = t1-t0;
> jeckyl = t3-t2;
>>>
>
>RESULTS: hatter method takes 1384ms, my method takes 240ms. If you use
>Flash 8 instead of SWiSH Max, you can get it a bit faster still .. but as it
>is it is over 5 times faster (close to 6 times)
>
>Wonder where hatter made up this 700% slower figure from .. maybe he just
>had no idea how to measure it, or had no idea how to implement it, or both.
>That would seem consistent with my experiences with him so far .. that he's
>just a big ugly bag of foul language .. nothing logical, rational or
>intelligent has come out of him so far.

*cough* BULLSHIT *cough*

You fucking text book deficient. Do you EVER TRY any of the fucking
bullshit you pull out of yer ass?

Here's a live example using YOUR fuckwitted version:
http://www.backwater-productions.net/_test_platform/Sprite_Test/index.php

....huh. So, not only does your method not work AT ALL...unless a
plain black screen was what you were aiming for, but it took FOUR
HUNDRED AND SEVENTY SEVEN SECONDS to produce it.

Now here's MY method:
http://www.backwater-productions.net/RMXP_CSG/index.php

....huh. Now, granted, I do need to fix it with the zero reds so as
not to produce an image like this:
http://www.backwater-productions.net/_images/_Usenet/Failed_Color.png

However, my version not only does more than produce a PLAIN BLACK
SCREEN, but amazingly enough, it only takes NINETEEN SECONDS to
render.

DUM DUM DUM DUM DUM...you sure are a fuckwitted lil retard, aren'tcha
Jeckyl?

Here's those numbers again (for the benefit of the slower children):
My way ~ 19 seconds
Your way ~ 477 seconds

That basically means that your way isn't 700 times slower, it's TWO
THOUSAND FIVE FUCKING HUNDRED TIMES SLOWER...you dribbling retard.

And once again, all you've done is RUN THE FUCK AT THE MOUTH...where
as I've put up LIVE EXAMPLES of the two methods and anyone who wants
to confirm your stupidity can simply look at the source code to
confirm it.

In other words:
http://members.dslextreme.com/users/xrcs/myspace/you%20lose%20wonka.gif

--

Onideus Mad Hatter
mhm ¹ x ¹
http://www.backwater-productions.net
http://www.backwater-productions.net/hatter-blog


Hatter Quotes
-------------
"You're only one of the best if you're striving to become one of the
best."

"I didn't make reality, Sunshine, I just verbally bitch slapped you
with it."

"I'm not a professional, I'm an artist."

"Your Usenet blinders are my best friend."

"Usenet Filters - Learn to shut yourself the fuck up!"

"Drugs killed Jesus you know...oh wait, no, that was the Jews, my
bad."

"There are clingy things in the grass...burrs 'n such...mmmm..."

"The more I learn the more I'm killing my idols."

"Is it wrong to incur and then use the hate ridden, vengeful stupidity
of complete strangers in random Usenet froups to further my art?"

"Freedom is only a concept, like race it's merely a social construct
that doesn't really exist outside of your ability to convince others
of its relevancy."

"Next time slow up a lil, then maybe you won't jump the gun and start
creamin yer panties before it's time to pop the champagne proper."

"Reality is directly proportionate to how creative you are."

"People are pretty fucking high on themselves if they think that
they're just born with a soul. *snicker*...yeah, like they're just
givin em out for free."

"Quible, quible said the Hare. Quite a lot of quibling...everywhere.
So the Hare took a long stare and decided at best, to leave the rest,
to their merry little mess."

"There's a difference between 'bad' and 'so earth shatteringly
horrible it makes the angels scream in terror as they violently rip
their heads off, their blood spraying into the faces of a thousand
sweet innocent horrified children, who will forever have the terrible
images burned into their tiny little minds'."

"How sad that you're such a poor judge of style that you can't even
properly gauge the artistic worth of your own efforts."

"Those who record history are those who control history."

"I am the living embodiment of hell itself in all its tormentive rage,
endless suffering, unfathomable pain and unending horror...but you
don't get sent to me...I come for you."

"Ideally in a fight I'd want a BGM-109A with a W80 250 kiloton
tactical thermonuclear fusion based war head."

"Tell me, would you describe yourself more as a process or a
function?"

"Apparently this group has got the market cornered on stupid.
Intelligence is down 137 points across the board and the forecast
indicates an increase in Webtv users."

"Is my .sig delimiter broken? Really? You're sure? Awww,
gee...that's too bad...for YOU!" `, )

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация