mIRC Home    About    Download    Register    News    Help

Print Thread
#106427 30/12/04 03:32 AM
Joined: Aug 2004
Posts: 147
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Code:
alias hello {
  window -ep @hello
  drawrect -r @hello 0 1 100 100 50 50
  var %i = 1,%t = $ticks
  while (%i <= 1000) {
    drawcopy -tr @hello $rgb(255,255,255) 0 0 $window(@hello).bw $window(@hello).bh @hello 0 0
    inc %i
  }
  echo -a Using the -t switch on /drawcopy: $calc($ticks - %t)
  var %i = 1,%t = $ticks
  while (%i <= 1000) {
    drawcopy -r @hello 0 0 $window(@hello).bw $window(@hello).bh @hello 0 0
    inc %i
  }
  echo -a Not using the -t switch on /drawcopy: $calc($ticks - %t)
}

Quote:
Using the -t switch on /drawcopy: 21797
Not using the -t switch on /drawcopy: 6563


Its not exactly a bug, but using the -t switch is about 332.1195% slower.

#106428 30/12/04 05:04 PM
Joined: Aug 2003
Posts: 72
V
Babel fish
Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
Of course it is slower... it needs way more processing than a simple drawcopy

#106429 30/12/04 07:10 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
Even worse here:

Code:
Using the -t switch on /drawcopy: 24234
Not using the -t switch on /drawcopy: 1359

I agree with visionz though smile

#106430 30/12/04 07:25 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
332.1195% slower! That's a dramatic way of saying something that's really not very shocking. Implementing transparency is a whopping 3x slower, what's the surprise? It's not just 'not exactly' a bug, it's not remotely a bug.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#106431 31/12/04 03:26 AM
Joined: Aug 2004
Posts: 147
N
Vogon poet
OP Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
well yes I can see why it's slow, but its still messes up my script frown

#106432 31/12/04 04:24 PM
Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
Using the -t switch on /drawcopy: 48922
Not using the -t switch on /drawcopy: 812

it also depends on the resolution smile

or the w*h


one step closer to world domination

Link Copied to Clipboard