Sign in
Randomisation
When a 'z' just doesn't cut it... (Oren Nachman's random notes from Microsoft)
Options
Blog Home
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search Blogs
Tags
Debugging
emulator
Firefox
Gotchas
Mango
PDC
PDC2010
Performance
Profiling
sdk
Silverlight
Silverlight for Windows Phone
Silverlight Performance
Silverlight Toolkit
Sockets
TechEd Europe
Tips & Tricks
Visual Studio
wiindows 8
Windows Phone
WP Mango
WP Marketplace
WP7
WP7 Dev Tips
Archive
Archives
July 2012
(1)
June 2012
(1)
November 2011
(1)
September 2011
(2)
July 2011
(2)
February 2011
(2)
January 2011
(9)
December 2010
(3)
November 2010
(4)
October 2010
(5)
September 2010
(3)
August 2010
(4)
June 2010
(3)
May 2010
(1)
WP7 Perf Tip #6: Be smart about graphics (use JPEG where possible)
MSDN Blogs
>
Randomisation
>
WP7 Perf Tip #6: Be smart about graphics (use JPEG where possible)
WP7 Perf Tip #6: Be smart about graphics (use JPEG where possible)
Oren Nachman
3 Oct 2010 5:26 PM
Comments
0
Take Away's:
Wherever possible (i.e. no transparency) use JPEG images since these decode faster than PNG
Make sure your images are correctly sized (you don't want to waste cycles with resizing on the fly)
Always compile your images with a "Build Action" of "Content" instead of the default "Resource"
Some Background:
JPEG (JPG) decodes faster, simple as that. The difference will continue to shrink over time, but every cycle is important on the phone, especially on image intensive applications.
Don't take this to mean "never use PNG", rather, PNG is slower so only use it when you need it (transparency) as opposed to for everything as a generic default.
Although resizing is quick (even if it looks ugly) there is no point wasting those cycles resizing images on the fly (Silverlight will do this for you) if you can already size the images correctly from the start
The default when adding new images is to set "Build Action" to "Resource" (under the Properties window). Make sure to always change this to "Content" in order to reduce the size of your DLL, speeding up both app load and image load.
The properties window, with the correct "Build Action" set
0 Comments
Comments
Loading...
Leave a Comment
Name
Comment
Please add 6 and 1 and type the answer here:
Post