Skip to main content

Microsoft Silverlight

Unanswered Question Questions about Silverlight PerformanceRSS Feed

(0)

vchelaru
vchelaru

Member

Member

5 points

13 Posts

Questions about Silverlight Performance

I'm a little surprised and disappointed that I'm not able to find a lot of information about Silverlight performance on Google.  I have some questions regarding Silverlight performance which I think others would greatly benefit from as well.  As a bit of background, I have experience with .NET on the PC and Xbox 360 (Compact Framework, XNA).

 Here goes:

 

  1.  Is the Garbage Collector generational?  In my particular case I'm dealing with reference-heavy code.  This is usually ok on the regular PC CLR because most of my objects have a long life.  On the 360 (which uses the compact framework), any collection is deadly in terms of framerate pops.
  2. I know this has been asked a few times, but is there any word about a CLR Profiler for memory allocations?  I know there are profilers that tell you how much time you spend in a method but I don't see this as being useful for eliminating issues caused from allocations.  Are there any other techniques that people can think of to measure or reduce memory allocation?  I've also heard about converting to WPF - not practical for me because my projects are very big and complex.
  3. Related to #2, things I've been looking for through my code is string manipulations, foreach statements, "new" calls, and list growth.  Any other common allocation-causing code that people can think of to watch out for?
  4. This might be an obvious answer, but does Silverlight only get one core on a multi-core machine?  If so it seems like there isn't an opportunity to split tasks into multiple threads to take advantage of separate cores.
  5. How does the inlining behavior of Silverlight compare to the PC CLR?  The Compact Framework on the 360 doesn't inline a lot of things and I've experienced situations where properties can make an app choke.  Manual inlining has resulted in significant improvements on the compact framework in my experience - same in Silverlight?
Thanks in advance for any answers.

--Vic--

FlatRedball Game Engine
www.flatredball.com

Sergey.Lutay
Sergey.L...

Contributor

Contributor

7202 points

1,342 Posts

Re: Questions about Silverlight Performance

Hi,

I think you will find answers at this posts:

Garbage Collection

Program Silverlight with the CoreCLR

XPerf: A CPU Sampler for Silverlight

Silverlight rendering performance in different

Deep Dive into Microsoft Silverlight Graphics

Building an Optimized, Graphics-Intensive Application for Microsoft Silverlight

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

Blog

Twitter

Sincerely,
Sergey Lutay

GearWorld
GearWorld

Participant

Participant

846 points

1,105 Posts

Re: Re: Questions about Silverlight Performance

Search Bing instead of Google

vchelaru
vchelaru

Member

Member

5 points

13 Posts

Re: Questions about Silverlight Performance

 BUMP

 I've seen most of those links before, none of which answer any of my questions except the single-threaded stuff.

 Hasn't anyone encountered these questions who knows the answers and is willing to share them?  

--Vic--

FlatRedball Game Engine
www.flatredball.com
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities