This is a migrated thread and some comments may be shown as answers.

RadPhoneApplicationFrame decreases performance when the background of RootFrame is set

7 Answers 117 Views
PhoneApplicationFrame
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
nodd13
Top achievements
Rank 1
nodd13 asked on 12 Mar 2011, 04:30 AM
Setting the RootFrame to a RadPhoneApplicationFrame results in a black (or white depending on the phones theme settings) background between pages during a transition. I noticed that you overcame this in the TelerikExamples by setting the "Background" property of the RootFrame in the app.xaml.cs

this.rootFrame.Background = (Brush)Application.Current.Resources["InnerScreensBrush"];

However when did this in my application I noticed a big drop in the frame rate.

I tested this in a simple one page application with frame rate counters
switched on. If I set the "Background"
property for the RootFrame
the Intermediate Texture Count (ITC) jumps from "001" to "002". 


This only happens if the RootFrame is a RadPhoneApplicationFrame, if a 
regular PhoneApplicationFrame is used then setting the "Background" has no
effect on the ITC and as far as I can tell no decrease in performance.

This decrease in performance is not noticable for a simple application.
However for the front panorama in my application the
 ITC jumps from "002"
to "003" causing a significant drop in frame rate. I have worked around
this by using
 event handlers so that the "Background" is only set while the
RootFrame is navigating. 


Is there a better
solution for this?


7 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 17 Mar 2011, 06:55 PM
Hello Umar,

Sorry for the late reply!

Can you send us your project so we can investigate what is causing the issue. Basically it is expected that the frame rate will be slowed down, because the FillRate (the last counter) is probably above 2 if your app is more complex. If you can send us your app - we can investigate and give you hints on what the best option will be.

Greetings,
Valentin.Stoychev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Alexander
Top achievements
Rank 1
answered on 31 Jan 2012, 03:12 PM

Hi,

I'm experiencing the same issue... All i've done, placed Panorama with ImageBrush as Background and defined Background property of RadPhoneApplicationFrame with SolidColorBrush
0
Valentin.Stoychev
Telerik team
answered on 01 Feb 2012, 08:10 AM
Hello Alexander,

It is expected to see degraded performance when you set background to the frame, because the fill rate of the application is getting high. Can you please let us know what is the fill rate in your app with and without the background?

Kind regards, Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Alexander
Top achievements
Rank 1
answered on 02 Feb 2012, 12:13 PM
With background the fill rate is 2.5 - 2.7: without - 1.5 - 1.7...
How can i override system frame color during page transition in custom designed app with less performance drop?..
Thanks.
0
Valentin.Stoychev
Telerik team
answered on 03 Feb 2012, 10:30 AM
Hello Alexander,

Unfortunately we are not aware of a way to specify a background and not to increase the fill ratio of the application.

Did you try reoming the background from all your pages and leaving only the frame background?

All the best, Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Alexander
Top achievements
Rank 1
answered on 03 Feb 2012, 12:13 PM

Thanks for idea, but now i'm using this approach:
but this not working when resurrecting (PageTransitionCompleted doesn't fire)

var frame = new RadPhoneApplicationFrame();
           frame.Navigating += (s, e) =>
               {
                   if (frame.Source != null) //exclude launching
                   {
                       frame.Background = new SolidColorBrush(Colors.Black);
                   }
               };
           frame.PageTransitionCompleted += (s, e) =>
               { frame.Background = null; };
0
Valentin.Stoychev
Telerik team
answered on 07 Feb 2012, 11:30 AM
Hello,

We tried reproducing the error you described, but the PageTransitionCompleted event is raised in our tests.

Can you please send us a reproducible project where this problem happens.

Thank you in advance for your collaboration.

Regards, Valentin.Stoychev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
PhoneApplicationFrame
Asked by
nodd13
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or