home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MediaPortal 1.1 Games Pack
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="SilentException" data-source="post: 588805" data-attributes="member: 83924"><p>ok i think i found out what might be blocking the games.. all of these games are setting a large numbers of gui properties (since they rely on them to draw the game board correctly). obviously something recently added in SetProperty method has massively slowed down the execution.</p><p></p><p>for example, these lines of code in OnPageLoad:</p><p></p><p>[CODE]</p><p> Log.Debug("Remove controls from form");</p><p> try</p><p> {</p><p> for (int i = 500; i < 1180; i++)</p><p> {</p><p> GUIPropertyManager.SetProperty("#F" + i, "-");</p><p> GUIPropertyManager.SetProperty("#NF" + i, "-");</p><p> //Remove(i);</p><p> }</p><p> }</p><p> catch</p><p> {</p><p></p><p> }</p><p> Log.Debug("Remove controls from form END");</p><p>[/CODE]</p><p></p><p>took more than 2 minutes to execute:</p><p></p><p>[CODE]</p><p>2010-03-05 01:[B]15:22[/B].776327 [Debug][MPMain(1)]: Remove controls from form</p><p>2010-03-05 01:[B]17:53[/B].870994 [Debug][MPMain(1)]: Remove controls from form END</p><p>[/CODE]</p><p></p><p>I need to have a closer look in SetProperty method but maybe some experienced MediaPortal developer can shed some light on this..</p></blockquote><p></p>
[QUOTE="SilentException, post: 588805, member: 83924"] ok i think i found out what might be blocking the games.. all of these games are setting a large numbers of gui properties (since they rely on them to draw the game board correctly). obviously something recently added in SetProperty method has massively slowed down the execution. for example, these lines of code in OnPageLoad: [CODE] Log.Debug("Remove controls from form"); try { for (int i = 500; i < 1180; i++) { GUIPropertyManager.SetProperty("#F" + i, "-"); GUIPropertyManager.SetProperty("#NF" + i, "-"); //Remove(i); } } catch { } Log.Debug("Remove controls from form END"); [/CODE] took more than 2 minutes to execute: [CODE] 2010-03-05 01:[B]15:22[/B].776327 [Debug][MPMain(1)]: Remove controls from form 2010-03-05 01:[B]17:53[/B].870994 [Debug][MPMain(1)]: Remove controls from form END [/CODE] I need to have a closer look in SetProperty method but maybe some experienced MediaPortal developer can shed some light on this.. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MediaPortal 1.1 Games Pack
Contact us
RSS
Top
Bottom