Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7516069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:01:04+00:00 2026-05-30T01:01:04+00:00

I have a Windows Phone 7 Silverlight with XNA application. I’m also using a

  • 0

I have a Windows Phone 7 Silverlight with XNA application.
I’m also using a service which uses javascript to render dynamic images to the screen.

On the PC, the javascript is fluid and smooth, I can jump between images and their transitions smoothly. However, I need to bring this functionality to the phone.

As of right now, I’ve managed to use the Web Browser control in Silverlight to load my HTML file and execute the script. The problem is that once the “dynamic” part of the application kicks in, the web control doesn’t update fast enough. Instead of smooth sliding animations that the PC version results in, I get stutter, similar to having a low FPS in a game.

So, I’m wondering: is there any way to increase the update rate of a web browser control?

Another thought that I’ve had (but have been unsuccessful at implementing) is to embed a web browser in the XNA page of the application and use XNA’s update rate, which is significantly higher (I’m guessing is the standard 60 fps). However, the Silverlight web broweser control doesn’t seem to have an update rendering function and the I can’t find a library to embed a web browser inside the XNA application itself.

Does anyone have any idea how I can get my dynamic HTML file with javascript to render fluidly and smoothly?

EDIT:
webBrowser.InvalidateArrange() using a Timer at 30 FPS seems to have sped up the browser refresh but it’s still jumpy. If I try to increase the FPS, the browser reverts back to being slow.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:01:07+00:00Added an answer on May 30, 2026 at 1:01 am

    Using a Timer set at 17 milliseconds (60 FPS) I force the invalidation of the browser, which causes it to redraw. In addition to this, I eliminated frames where the browser did not need to be redrawn.

        DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer();
        timer.Interval = new TimeSpan(0, 0, 0, 0, 17); // 30 FPS 
        timer.Tick += new EventHandler(timer_Tick);
        timer.Start();
    
        void timer_Tick(object sender, EventArgs e)
        {
            if (loaded && coded && needToUpdate)
            {
                    webBrowser.InvokeScript("setPitch", pitch.ToString());
                    webBrowser.InvokeScript("setHeading", heading.ToString());
                    Redraw();
    
                    needToUpdate = false;
            }
        }
    
        void Redraw()
        {
            webBrowser.InvalidateMeasure();
            webBrowser.InvalidateArrange();
            webBrowser.Visibility = System.Windows.Visibility.Visible;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a windows mobile 6.5 gaming application which uses openGL . Now we
I am working on Windows Phone 7.1 application. I have a UserControl which has
I have a Windows Phone 7 application built in Silverlight. This application makes use
I have a Windows Phone 7 application that uses the Dispatcher to make sure
I have a Silverlight application for Windows Phone 7. This application runs fine, except
Windows Phone application (Silverlight 3) I have a textblock <TextBlock Text={Binding Key} FontSize=40 Foreground={Binding
I have a Windows Phone 7 application (Silverlight-based) that sends a web request and
In a Windows Phone 7 Silverlight application, I have this ListBox: <ListBox ItemsSource={Binding Path=Programs}
Say you have a Windows Mobile 6.0 phone that also has a GPS receiver.
I'm using C# and I have windows form and web service... I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.