• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » WinCE » WinCE forum » OMAP3503, Silverlight and DirectDraw: problem
Share
WinCE
  • Forum
Options
  • Subscribe via RSS

OMAP3503, Silverlight and DirectDraw: problem

OMAP3503, Silverlight and DirectDraw: problem

This question is answered
SimpleSoft
Posted by SimpleSoft
on Nov 09 2010 09:28 AM
Intellectual540 points

Hi.

I build WinCE 6.0 image with Silverlight(SYSGEN_XAML_RUNTIME) and DirectDraw(SYSGEN_DDRAW) support.

Image build with flags BSP_XRPLUGIN_DDRAW and SYSGEN_SAMPLEXAMLPERF  also.

When i try to start Carousel example, But i have no window appear on the screen, only "XAML ..." on taskbar.

If i build image without  BSP_XRPLUGIN_DDRAW flag, all examples starts with window shows, but all examples executes too slowly .

 

For test purpose i try to play avi-file in TCPMP-player with DirectDraw as Video Driver, and i have the same problem - i see nothing.

 

Could anybody help me?

OMAP3503, BSP 6.14.01.01

 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Mauricio Sanchez15270
    Posted by Mauricio Sanchez15270
    on Nov 10 2010 16:18 PM
    Intellectual1370 points

    Hi,

    The DDraw plugin is really now (I believe it was disabled in previous R3 releases).  When enabling it DDraw generates an error when trying to allocate the surfaces (the errors can be seen in the Retail Messages); and it needs to be investigated.  However, I doub't that the performance will increase too much.  We do see a big increase when using the OpenGL in the OMAP3530 part that uses the Graphics Coproccesor (Carousel runs at 20FPS in average) or the 37x parts (avg 37FPS) compared to default GDI plugin (4FPS).

    Mauricio

    WINCE Silverlight
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • SimpleSoft
    Posted by SimpleSoft
    on Nov 11 2010 01:53 AM
    Intellectual540 points

    Hi, Mauricio

    Thank you for your answer. I have no debug COM on my board, that i cannot see retail messages.

    I want to have any performance increase. I use OMAP3503, where have no OpenGL HW accel.

    May be BSQUARE will be fixed this problem in display driver (DDraw allocate the surfaces) in next release of OMAP35x BSP?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mauricio Sanchez15270
    Posted by Mauricio Sanchez15270
    on Nov 12 2010 17:03 PM
    Verified Answer
    Verified by SimpleSoft
    Intellectual1370 points

    Hi,

    The basic answer to your question, is that the problem itself is not fixed in later version of the BSP (not even in TI'S BSP). But, there are two ways to overcome your issue; although as I explain in each step, I doubt it will provide you with the performance boost that you're looking for):

    • The issue itself is that giving the driver capabilities the plugin tries to create a backbuffer for Cached Composition; this buffer is based on a 32 bit pixel format (A8R8G8B8) which it is probably rejected in the CanCreateSurface test.  To correct this (I don't know which version you use, so I try to be as general as possible) modify the Halsurf.cpp (it should be in PLATFORM\COMMON\SRC\SOC\OMAP35XX_TPS659XX_TI_V1\omap35xx\DISPLAY\DDGPE for BSQ releases, PLATFORM\COMMON\SRC\SOC\COMMON_TI_V1\COMMON_TI\DSS\DDGPE for TI's BSP) and remove the red text in function HalCanCreateSurface:

               //  Check for RGB formats on primary display
                else if((pDDPixelFormat->dwFlags & DDPF_RGB) && !(pDDPixelFormat->dwFlags & DDPF_ALPHAPREMULT))
                {
                 //  Check pixel sizes

    This will allow the plugin to run the Silverlight.  Unfortunately, using this Cache will bring the system to a crawl, specially when using the whole screen (640x480) like the provided demos do; since multiple surface copies of 32bits pixels are made followed by the final blit that requires a conversion to the 16bpp supported by the primary device.

    • The plugin will use this Cached Composition whenever the Alpha capabilities are supported by the driver (which we do); however this can be disabled by changing the function InitializeGlobals in DDrawDevice for the DDraw plugin by esentially making the memeber s_fSupportsCachedComposition FALSE (This is Microsoft's code).  This change does not require the previous one.  In this case you will maybe see a slight (if noticeable) increase in the performance which will vary depending on the way that Silverlight gets used.

    Let me know if this helps you,

    Mauricio

    WINCE Silverlight
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • SimpleSoft
    Posted by SimpleSoft
    on Nov 15 2010 04:37 AM
    Intellectual540 points

    Thanks, Mauricio!

    I's great! It works fine (solution with s_fSupportsCachedComposition to FALSE in DDraw plugin).

    Can i receive more performance in Windows Embedded Compact 7?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Mauricio Sanchez15270
    Posted by Mauricio Sanchez15270
    on Nov 16 2010 15:40 PM
    Intellectual1370 points

    Currently no; however we are working with Microsoft to improve the performance for the final release.  As I said to get a significant improve of the performance you need to migrate to a processor with the Graphics accelerator.

    Mauricio

    WINCE Silverlight
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • SimpleSoft
    Posted by SimpleSoft
    on Nov 21 2010 12:27 PM
    Intellectual540 points

    Thanks all!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use