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 2
Plugin Development
Plugin: RefreshRateChanger
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="Lightning303" data-source="post: 1110730" data-attributes="member: 97876"><p>No, not that i can think of. Worst case scenario, The calculations in ChangeDelay() result in 0 or a negative number.</p><p>If that happens, the field in the core (AtmoLightObject, probably should change the name to coreObject) just wont get changed (<a href="https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.Core/Core.cs#L937-L946" target="_blank">https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.Core/Core.cs#L937-L946</a>)</p><p>The core itself does not care what refreshrate is being used. It just delays sending the color infos to the the target software based on the delay we gibe it. And if the delay is 0, it sends it the next chance it gets (in a thread).</p><p></p><p></p><p></p><p>I know very little of DirectX, SharpDX or redering in generall, so might be. But UICapture() is called by the event SkinContext.DeviceSceneEnd (see: <a href="https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.MediaPortal2/Plugin.cs#L118" target="_blank">https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.MediaPortal2/Plugin.cs#L118</a>) so i was under the impression this only gets called when a frame has been rendered completly and is ready?!</p></blockquote><p></p>
[QUOTE="Lightning303, post: 1110730, member: 97876"] No, not that i can think of. Worst case scenario, The calculations in ChangeDelay() result in 0 or a negative number. If that happens, the field in the core (AtmoLightObject, probably should change the name to coreObject) just wont get changed ([url]https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.Core/Core.cs#L937-L946[/url]) The core itself does not care what refreshrate is being used. It just delays sending the color infos to the the target software based on the delay we gibe it. And if the delay is 0, it sends it the next chance it gets (in a thread). I know very little of DirectX, SharpDX or redering in generall, so might be. But UICapture() is called by the event SkinContext.DeviceSceneEnd (see: [url]https://github.com/ambilight-4-mediaportal/AtmoLight/blob/master/AtmoLight.MediaPortal2/Plugin.cs#L118[/url]) so i was under the impression this only gets called when a frame has been rendered completly and is ready?! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Plugin: RefreshRateChanger
Contact us
RSS
Top
Bottom