So I am trying to make tinny Rainmeter widgets that stay over the taskbar and for these to work I needed a code to make them always stay on top except for when I open VLC, else they would be over the video when VLC is in full-screen. So, after some searching, I landed on this post https://forum.rainmeter.net/viewtopic.php?f=103&t=7643&sid=1adebf19197bf214600c8bb3c23fea5d
which gave me this code
for making the skin stay on top of the taskbar all the time except for when I open VLC.
The code does exactly what I want, but I am experiencing an annoying issue with it and that is that it causes Rainmeter to lag heavily. Can anyone tell me why this code is causing lag and help me fix it or give me an alternate code ?
Use IfCondition rather than IfEqual/IfAbove; the lag is due to those tests setting the Z-position on every skin update, whereas the IfCondition will only execute the bang once and not fire again until the condition changes.
eclectic-tech wrote: ↑May 14th, 2021, 11:41 pm
Use IfCondition rather than IfEqual/IfAbove; the lag is due to those tests setting the Z-position on every skin update, whereas the IfCondition will only execute the bang once and not fire again until the condition changes.
Just an aside, it's not actually accurate that IfActions behave differently than IfConditions as far as how efficient they are. Both will only "fire" once when the test changes from false to true. There are advantages to IfConditon over IfAction, but they are more functional in nature.
jsmorley wrote: ↑May 15th, 2021, 11:03 am
Just an aside, it's not actually accurate that IfActions behave differently than IfConditions as far as how efficient they are. Both will only "fire" once when the test changes from false to true. There are advantages to IfConditon over IfAction, but they are more functional in nature.
Yeah, I thought that might be true (after I posted), so thanks for clarifying
jsmorley wrote: ↑May 15th, 2021, 11:03 am
Just an aside, it's not actually accurate that IfActions behave differently than IfConditions as far as how efficient they are. Both will only "fire" once when the test changes from false to true. There are advantages to IfConditon over IfAction, but they are more functional in nature.
To think of it, this code also has another issue and that is that it will not help me when I wanna watch a full-screen video in Firefox (say for example a YouTube video in full-screen)
So I was wondering would this plugin you made help with this in any way ?
BloodyHell619 wrote: ↑May 15th, 2021, 3:34 pm
To think of it, this code also has another issue and that is that it will not help me when I wanna watch a full-screen video in Firefox (say for example a YouTube video in full-screen)
So I was wondering would this plugin you made help with this in any way ?
jsmorley wrote: ↑May 15th, 2021, 11:03 am
Just an aside, it's not actually accurate that IfActions behave differently than IfConditions as far as how efficient they are. Both will only "fire" once when the test changes from false to true. There are advantages to IfConditon over IfAction, but they are more functional in nature.
Don't contest this is true, it definitely is. However a great advantage of IfCondition in front of IfAction is that it can extremely easily be set to execute on each update of the skin, regardless if the condition just became true / false or it's continuously on the appropriate state, by setting the IfConditionMode=1 option. This is impossible with IfActions.