It is currently May 19th, 2021, 12:24 am

120 fps animation for Interactive Dock skin?

Help with creating, editing & fixing problems with skins
pritster5
Posts: 4
Joined: August 8th, 2014, 7:33 pm

120 fps animation for Interactive Dock skin?

Post by pritster5 »

Hi all,

I have a 120hz monitor and I recently got the Interactive Dock skin (found here: https://www.deviantart.com/not-finch/art/Interactive-Dock-for-Rainmeter-772713805)

It's a wonderful skin, but is it possible to make the animations run smoother? It seems very choppy out of the box. I believe it is using action timer for the animation as I found this in the config files:

Code: Select all

[Animate]
Measure=Script
ScriptFile=#@#\Animation.lua
DynamicVariables=1
IfCondition= ( 1 = 1 )
IfTrueAction=[!CommandMeasure "Animate" "animate()"]
IfConditionMode=1

[Animation]
	Measure=Plugin
	Plugin=ActionTimer
	Group=Animation
	DynamicVariables=1
	ActionList1=Repeat Init, 150, #TotalGame# | InitDone
	ActionList2= Wait 1000 | HideNow
	ActionList3= StopHide | Repeat Show, 20, #TotalGame#
	ActionList4= DropImage
	ActionList5= DropFile
	ActionList6= Repeat Draw, 25, #step#
	ActionList7= Repeat Hide, 25, #TotalGame#
	Init=[!CommandMeasure "Animate" "show_more()"][!CommandMeasure Animation "Stop 6"][!CommandMeasure Animation "Execute 6"]
	InitDone=[!CommandMeasure Animation "Stop 2"][!CommandMeasure Animation "Execute 2"][!CommandMeasure Animation "Stop 6"] [!CommandMeasure Animation "Execute 6"]
	StopHide=[!CommandMeasure Animation "Stop 2"][!CommandMeasure Animation "Stop 6"][!CommandMeasure Animation "Execute 6"]
	Hide=[!CommandMeasure "Animate" "hide_icon()"][!CommandMeasure Animation "Stop 6"][!CommandMeasure Animation "Execute 6"]
	Show=[!CommandMeasure "Animate" "unhide_icon()"]
	DropImage=[xcopy "#File#" "#Directory#" /y][!WriteKeyValue Variables "Gamecover#Edit#" "#Filename#" "#@#Applist.inc"][!SetVariable 			Gamecover#Edit# #Filename#][!Delay 1000][!UpdateMeter Icon#Edit#][!SetOption Debug Text "Added image: #File#"]
	DropFile=[!WriteKeyValue Variables "Gamedir#Edit#" """["#File#"]""" "#@#Applist.inc"][!SetVariable Gamedir#Edit# #File#][!SetOption Debug Text "Added file: #File#"]
	Draw=[!CommandMeasure "Animate" "animate()"][!UpdateMeterGroup "Icons"][!UpdateMeasureGroup "DropGroup"][!Redraw]
	HideNow=[!CommandMeasure Animation "Stop 6"][!CommandMeasure Animation "Stop 7"][!CommandMeasure Animation "Execute 7"]

[ScriptRefresher]
Measure=Script
ScriptFile=#@#Refresher.lua
UpdateDivider=-1
Refreshed=0

@Include=#@#IconMeter.inc
	
The animation.lua file is quite long so I have attached it below as a text file:
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 12670
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 120 fps animation for Interactive Dock skin?

Post by balala »

pritster5 wrote: May 1st, 2021, 12:55 pm It's a wonderful skin, but is it possible to make the animations run smoother? It seems very choppy out of the box.
Try reducing the Wait parameter in the Actionlist1 option of the [Animation] measure. This option looks this way initially: ActionList1=Repeat Init, 150, #TotalGame# | InitDone. As said, you should have to try to decrease the red marked number above. How much should it be decreased, depends, but I suppose a few tries could reveal the best value.
pritster5
Posts: 4
Joined: August 8th, 2014, 7:33 pm

Re: 120 fps animation for Interactive Dock skin?

Post by pritster5 »

Hmm, so I tried your suggestion and all that does is change how fast the icons show up after loading the skin (a "boot up" animation plays when the skin is first loaded).

Is there anyway to actually make the animation itself smoother?
User avatar
balala
Rainmeter Sage
Posts: 12670
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 120 fps animation for Interactive Dock skin?

Post by balala »

pritster5 wrote: May 2nd, 2021, 8:03 am Is there anyway to actually make the animation itself smoother?
Probably you should reduce the same parameter in the ActionList6 and ActionList7 options as well. Initially they are set both to 25, try reducing them to 20 or 15 (or even below, if needed). Same way a few tries are required to get the best value:
So you probably have to replace the following options:

Code: Select all

[Animation]
...
ActionList6= Repeat Draw, 25, #step#
ActionList7= Repeat Hide, 25, #TotalGame#
...
with something like these:

Code: Select all

[Animation]
...
ActionList6= Repeat Draw, 15, #step#
ActionList7= Repeat Hide, 15, #TotalGame#
pritster5
Posts: 4
Joined: August 8th, 2014, 7:33 pm

Re: 120 fps animation for Interactive Dock skin?

Post by pritster5 »

Don't really know what exactly that did but it is definitely smoother!

Thanks!
User avatar
balala
Rainmeter Sage
Posts: 12670
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: 120 fps animation for Interactive Dock skin?

Post by balala »

pritster5 wrote: May 3rd, 2021, 3:10 am Don't really know what exactly that did but it is definitely smoother!
These values are setting the waiting time between two consecutive execution of the action. For instance ActionList6 is executed when the icons are showing when you're hovering the mouse over and ActionList7 when the icons are hidden when you're leaving the skin. Reducing the values makes the animation to be executed on a smaller interval (quicker), which means a smoother animation.
ActionList1 is executed on the first animation, when the icons come in after the refresh / load of the skin, that's why reducing the wait interval here makes the icons to be shown quicker on the first animation.
You can use different values on these options, to get the icons to move in different ways. It's up to you and your preferences.