RadPhoneApplicationFrame decreases performance when the background of RootFrame is set

8 posts, 0 answers
  1. nodd13
    nodd13 avatar
    4 posts
    Member since:
    Feb 2011

    Posted 11 Mar 2011 Link to this post

    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?


  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Mar 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Alexander
    Alexander avatar
    3 posts
    Member since:
    Jun 2012

    Posted 31 Jan 2012 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Feb 2012 Link to this post

    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 >>

  6. Alexander
    Alexander avatar
    3 posts
    Member since:
    Jun 2012

    Posted 02 Feb 2012 Link to this post

    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.
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 03 Feb 2012 Link to this post

    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 >>

  8. Alexander
    Alexander avatar
    3 posts
    Member since:
    Jun 2012

    Posted 03 Feb 2012 Link to this post

    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; };
  9. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 07 Feb 2012 Link to this post

    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 >>
Back to Top
DevCraft banner