mIRC Homepage
Posted By: davjak Sluggish /did -o command - 26/04/06 04:41 AM
Hi there. I did a search but found nothing of use.
I wrote my own dialog to play random mp3's
v6.16 all is fine as should be
v6.17 the did -o mp3random 1 1 $remove($nopath(%mp3),.mp3) is very sluggish.
I've looked at the versions.txt aswell and don't seem to see anything in there that would cause this problem

Suggestions/Help?

Thanks in Advance.. davjak
Posted By: MikeChat Re: Sluggish /did -o command - 26/04/06 04:49 AM
the only suggestion I can think of is to try -ra instead

did -ra mp3random 1 $remove($nopath(%mp3),.mp3)
Posted By: davjak Re: Sluggish /did -o command - 26/04/06 04:58 AM
that seems to have speed it up a little.
I must admit I am being a little picky with this
but as an example
v6.16 was instant to the eye.
v6.17 did -o mp3random 1 1 $remove($nopath(%mp3),.mp3) was 500ms
v6.17 did -ra mp3random 1 $remove($nopath(%mp3),.mp3) is 350ms
Posted By: davjak Re: Sluggish /did -o command - 29/04/06 03:36 PM
I fixed it. with a lot of tinkering around.
alias mp3s.amount { var %mp3s.all = $findfile($get.mp3.ini(mp3,dir),*.mp3,0) | $put.mp3.ini(mp3,amount,%mp3s.all) }
alias mp3s.all { return $get.mp3.ini(mp3,amount) }


then i just use
alias mp3s.all { return $get.mp3.ini(mp3,amount) }

and in the dialog use
%mp3 = $findfile($mp3.dir,*.mp3,$rand(1,$mp3s.all))
did -ra mp3random 1 $remove($nopath(%mp3),.mp3)

And when i init the dialog i just use
mp3s.amount to get total mp3 amount

Now speeds are back to where they were in 6.16
© mIRC Discussion Forums