mIRC Homepage
Posted By: nalAAlan /drawcopy -t - 30/12/04 03:32 AM
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.
Posted By: visionz Re: /drawcopy -t - 30/12/04 05:04 PM
Of course it is slower... it needs way more processing than a simple drawcopy
Posted By: greeny Re: /drawcopy -t - 30/12/04 07:10 PM
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
Posted By: starbucks_mafia Re: /drawcopy -t - 30/12/04 07:25 PM
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.
Posted By: nalAAlan Re: /drawcopy -t - 31/12/04 03:26 AM
well yes I can see why it's slow, but its still messes up my script frown
Posted By: Sephiroth_ Re: /drawcopy -t - 31/12/04 04:24 PM
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
© mIRC Discussion Forums