Ok, I put together an animation, a silverlight wcf service in its own project and the damn thing is working nice and smooth. One difference I'd like to note here is that I'm using a Storyboard animation (which is working) and in my main project I'm using the VisualStateManager. Perhaps there's extra overhead there that's causing issues, or maybe it works totally different how it runs its animations. something to try out later. cheers, Stephen On Thu, Feb 19, 2009 at 5:47 PM, Jordan Knight <[email protected]>wrote:
> Any luck dood?? > > > > Where's that "took three hours to build" replication project we are all > waiting for??? > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Stephen Price > *Sent:* Thursday, 19 February 2009 10:30 AM > *To:* [email protected] > *Subject:* Re: Animations and threads > > > > If I kick off an animation which lasts for a second, then call my wcf > service on the same thread, what happens to the animation that is halfway > done? It would explain what I'm seeing here if the network call interrupts > the animation so it can do its thing. > > On Thu, Feb 19, 2009 at 8:48 AM, Jordan Knight <[email protected]> > wrote: > > I think animations and network calls are all run on the UI thread, queued > up by the dispatcher (from observation). > > The actual call itself shouldn't be causing animation issues (not something > i've witnessed myself)... > > > > > -----Original Message----- > From: [email protected] [mailto: > [email protected]] On Behalf Of Jonathan Parker > Sent: Thursday, 19 February 2009 9:36 AM > To: [email protected] > > Subject: Re: Animations and threads > > SL wcf proxies are asyc only due to not wanting to lock the UI which > means that my first guess would be that the animation is using a > background thread as well (under the hood) which is the same thread as > the wcf (under the hood) thread for detecting a response. > > It doesn't make sense that the wcf call would block the UI as that's > the whole reason for having async calls. > > Is the animation stopping or just stuttering? It may be a thread > polling for a response from the service which is blocking the > animation. > > On Thu, Feb 19, 2009 at 9:24 AM, Stephen Price <[email protected]> > wrote: > > > Hey all > > I've notices some of my animations are not running smoothly and it > > seems to happen when I make wcf service calls. The call is asyc > > judging by it's name and callback but it would appear to be blocking > > the ui thread. > > From memory I've hit this before in the past when I was working with > > SPF and I think I used a background worker to kick the work off on > > it's own thread but that doesn't seem right for an asyc wcf service > > call? > > Anyone come across this before? If I comment out the service call the > > animation works fine. (it's a busy/loading/waiting type animation that > > I want to run until the callback is called when the results come back. > > Ta > > Stephen > > > -------------------------------------------------------------------------------- > > Support procedure: https://www.codify.com/lists/support > > List address: [email protected] > > Subscribe: [email protected] > > Unsubscribe: [email protected] > > List FAQ: http://www.codify.com/lists/ozsilverlight > > Other lists you might want to join: http://www.codify.com/lists > > > > > > -------------------------------------------------------------------------------- > Support procedure: https://www.codify.com/lists/support > List address: [email protected] > Subscribe: [email protected] > Unsubscribe: [email protected] > List FAQ: http://www.codify.com/lists/ozsilverlight > Other lists you might want to join: http://www.codify.com/lists > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.237 / Virus Database: 270.10.25/1957 - Release Date: 02/18/09 > 08:57:00 > > -------------------------------------------------------------------------------- > > Support procedure: https://www.codify.com/lists/support > List address: [email protected] > Subscribe: [email protected] > Unsubscribe: [email protected] > List FAQ: http://www.codify.com/lists/ozsilverlight > Other lists you might want to join: http://www.codify.com/lists > > > ------------------------------ > > Support procedure: https://www.codify.com/lists/support > List address: [email protected] > Subscribe: [email protected] > Unsubscribe: [email protected] > List FAQ: http://www.codify.com/lists/ozsilverlight > Other lists you might want to join: http://www.codify.com/lists > ------------------------------ > Support procedure: https://www.codify.com/lists/support > List address: [email protected] > Subscribe: [email protected] > Unsubscribe: [email protected] > List FAQ: http://www.codify.com/lists/ozsilverlight > Other lists you might want to join: http://www.codify.com/lists > -------------------------------------------------------------------------------- Support procedure: https://www.codify.com/lists/support List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/ozsilverlight Other lists you might want to join: http://www.codify.com/lists
