Ok, I did it but didn't have time to test it at all. Instead of doing the
timer on chaning to the hand (ie on enter) I did the timer on returning back
to the arrow, that way when moving the mouse over multiple contacts it will
stay a hand and not an arrow.

In my code I was assuming it takes no cpu to change from the hand to the
hand but I didn't test it, it may be required to put an 'if alread a hand
dont do this' in there.

Lio.


----- Original Message From: "Youness Alaoui" ----- 

ok... hope it helps.. what about the after 200 solution ?

KKRT

On Sat, 04 Feb 2006 20:43:58 -0500, Arieh Schneier

> Ok, I cleaned up the bindings a fraction so that they are a fraction
> faster
> (especially if you turn off the binding). I also tracked down the major
> cpu
> usage problem is the changing of the cursor from a pointer to a hand and
> back again.
>
> Try running these in the status log, and then watch your cpu usage as you
> move the mouse around the cl (note don't move into the topframe as those
> bindings haven't changed, also note maybe update before trying this as I
> made a few enhancements):
> ::skin::setKey changecursor_contact 0
> ::skin::setKey changecursor_group 0
>
> ----- Original Message -----
> From: "Youness Alaoui" <[EMAIL PROTECTED]>
> To: <amsn-devel@lists.sourceforge.net>
> Sent: Sunday, February 05, 2006 7:06 AM
> Subject: Re: [Amsn-devel] CRITICAL bug
>
>
> On Sat, 04 Feb 2006 10:37:25 -0500, Arieh Schneier
> <[EMAIL PROTECTED]> wrote:
>
>>>>> - CPU load while moving the mouse around the contact list (so you see
>>>>> > contacts underlined) is VERY high (~ 90% on a pIII 800mhz).
>>>>>
>>>>> I noticed that on billiob who had a 1MB+ anigif DP.. I think on
>>>>> <Enter>
>>>>> it
>>>>> loads the DP.. so I'm not sure, but it does it for the first time I
>>>>> <Enter> his nick.. (at amsn start)... are you able to reproduce this
>>>>> and
>>>>> get it 100% of the time ?
>>>>
>>>>
>>>> i got lost there...  i mean when i'm moving my mouse upside down at
>>>> the
>>>> contact list, so, over the contacts, cpu use arise a lot lot lot
>>>> (~90-95%)... maybe in slower computers it would be a true pain.
>>>>
>>>
>>> I have a 800MHz pc and I don't have that issue...
>>
>> I am running a 1.6GHz and do have the same problem.
>>
>
> no comprendo why it happens then...
>
>> About loading the image on the first time you move your mouse over it,
>> yes
>> that is correct. Till last week it was creating the images on the first
>> time
>> the contact list was created due to the bindings for the balloon (which
>> I
>> found unnecessary). I therefore moved it out so that it only created it
>> when
>> the binding was called. Then last thursday I realised that that meant
>> they
>> got loaded the first time you move your mouse over the contact - which
>> also
>> isn't so good. I had an idea on how to fix that but didnt get a chance.
>> For
>> the balloon messages (ages ago) I created an option to prefix the text
>> by --command--, which says instead of using the text as the text for the
>> balloon, use this command to retrieve the text, we should do the same
>> for
>> the images (pretty simple). - update, just did this now
>>
>
> cool :)
>
>> That however doesn't explain the constant cpu, cpu for the first time
>> ok,
>> but why constant? The callbacks aren't that cpu intensive? Maybe its due
>> to
>> the passing around of large text portions? Maybe we should change the
>> text
>> to a proc which is just given the users id then create the required text
>> on
>> posting of the balloon (will also save quite a bit of setting up every
>> refresh of the cl).
>>
>
> indeed.. let's just hope it's indeed the explanation.. I would suggest
> calming the cpu a bit, getting it to 0%, then move the mouse slowly from
> one contact to another and see which one creates that huge cpu usage..
> try
> with users that have a smal nick, no psm vs. long nick long psm...
> anigif,
> no anigif.. maybe just the loading of the image is the one cpu
> intensive..
> not the loading in itself, but the check that the image is loaded or
> not..
> try with all groups expanded, and with one temp group containing one user
> expanded, all others collapsed... try with all groups coollapsed, and try
> to see if the same happens with hovering over groups only...
> try to hover the mouse out of the CL and from the desktop into the CL..
> to
> see if the cpu is taken when mousing out, or in...
> etc.. try to determine the exact cause...
>>
>> While on the topic of the balloons, I noticed in many places (including
>> refreshing of the cl) we set up all the bindings for the balloons
>> manually.
>> To set up all the bindings for a balloon all that you need to do is run
>> [set_balloon $target $message $pic] instead of the [bind <enter> ...,
>> bind
>> <leave> ..., bind <omtion> ...] that we do. Ummm, just realised, that
>> proc
>> may not work for bindings on text in a text widget, maybe we need to
>> create
>> a similar function to set_balloon called set_balloon_text? Anyway,
>> compare
>> the functions [proc balloon_enter] and [proc balloon_motion] in gui.tcl
>> to
>> the bindings in balloon.tcl.
>>
>
> yeah, I had infinite trouble making tooltips work for the uses, because
> they're all tags in a text widget, while those procs you specified work
> on
> widgets, not on tags... but yeah, making it modular would be nice indeed!
>
>>
>> Lio.
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>> files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Amsn-devel mailing list
>> Amsn-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/amsn-devel
>
>
>



-- 
KaKaRoTo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to