It is currently January 22nd, 2022, 5:17 am

Help with Update divider

Help with creating, editing & fixing problems with skins
User avatar
Alloutofmercy
Posts: 103
Joined: November 17th, 2021, 5:51 am

Help with Update divider

Post by Alloutofmercy »

Code: Select all

[Meterred]
meter=image
SolidColor=235,51,104,150
x=(-#XPos# + 190)
y=300
w=300
h=200
DynamicVariables=1
Group=Usage
Hidden=1
[measureCPU]
; This measure returns the average CPU load between all cores.
Measure=CPU
Processor=0
UpdateDivider=20
Group=Usage
Hidden=1

[measureRAM]
; Returns the amount of RAM used in bytes.
Measure=PhysicalMemory
UpdateDivider=20
; UpdateDivider sets the rate at which the value of the measure is updated. It is
; calculated as follows: UpdateDivider x Update. In this case, Update is set to
; 1000 milliseconds (in the [Rainmeter] section). 1000 x 20 = 20000 ms or 20 seconds.
Group=Usage
;styles
Hidden=1

[styleLeftText]
StringAlign=Left
FontColor=#colorText#
FontFace=Teko
FontSize=14
AntiAlias=1
Group=Usage
Hidden=1

[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
Group=Usage
Hidden=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30
Group=Usage
Hidden=1

[meterTitle]
Meter=String
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
Group=Usage
W=190
H=18
Text=System
FontFace=Teko
FontColor=#Fontvar#
Fontsize=25
AntiAlias=1
x=(-#XPos# + 290)
y=312
DynamicVariables=1
Hidden=1

[meterLabelCPU]
Meter=String
MeterStyle=styleLeftText
x=(-#XPos# + 220)
Y=340
W=190
H=14
Text=CPU Usage
DynamicVariables=1
Group=Usage
Hidden=1

[meterValueCPU]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureCPU
x=(-#XPos# +420)
Y=363
DynamicVariables=1
Text=%1%
UpdateDivider=1000
Group=Usage
Hidden=1

[meterBarCPU]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureCPU
x=(-#XPos# + 220)
Y=360
W=190
H=20
DynamicVariables=1
UpdateDivider=1000
Group=Usage
Hidden=1

[meterLabelRAM]
Meter=String
MeterStyle=styleLeftText
X=(-#XPos# + 220)
Y=390
W=190
H=14
Text=RAM Usage
DynamicVariables=1
Group=Usage
Hidden=1

[meterValueRAM]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureRAM
x=(-#XPos# +420)
Y=413
W=190
H=14
Text=%1%
Percentual=1
DynamicVariables=1
Group=Usage
Hidden=1

[meterBarRAM]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureRAM
x=(-#XPos# + 220)
Y=410
W=190
H=20
DynamicVariables=1
Group=Usage
Hidden=1

And

Code: Select all

[Meterred]
meter=image
SolidColor=#Accent9#,80
X=0
y=0
h=300
w=300

[measureCPU]
; This measure returns the average CPU load between all cores.
Measure=CPU
Processor=0

[measureRAM]
; Returns the amount of RAM used in bytes.
Measure=PhysicalMemory
UpdateDivider=20
; UpdateDivider sets the rate at which the value of the measure is updated. It is
; calculated as follows: UpdateDivider x Update. In this case, Update is set to
; 1000 milliseconds (in the [Rainmeter] section). 1000 x 20 = 20000 ms or 20 seconds.

[measureSWAP]

Measure=SwapMemory
UpdateDivider=20


[styleLeftText]
StringAlign=Left
FontColor=#colorText#
FontFace=Teko
FontSize=14
AntiAlias=1


[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30


[meterTitle]
Meter=String
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=150
Y=6
W=190
H=18
Text=System
StringAlign=Center
StringCase=Upper
FontColor=ffffff
FontFace=Die in a fire PG
FontSize=20
AntiAlias=1

; Even though the text is set to System, Rainmeter will display
; it as SYSTEM, because styleTitle contains StringCase=Upper.
LeftMouseUpAction=["taskmgr.exe"]
; Left-clicking this meter will launch taskmgr.exe (the Task Manager).
ToolTipText=Open Task Manager
; Hovering over this meter will display a tooltip with the text above.

[meterLabelCPU]
Meter=String
MeterStyle=styleLeftText
X=10
Y=50
W=190
H=14
Text=CPU Usage

[meterValueCPU]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureCPU
X=210
Y=72

Text=%1%

[meterBarCPU]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureCPU
X=10
Y=70
W=190
H=20

[meterLabelRAM]
Meter=String
MeterStyle=styleLeftText
X=10
Y=100
W=190
H=14
Text=RAM Usage

[meterValueRAM]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureRAM
X=210
Y=122
W=190
H=14
Text=%1%
Percentual=1

[meterBarRAM]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureRAM
X=10
Y=120
W=190
H=20
are almost very similar. The second one is from a skin that I made a long time ago, which I am integrating into my other larger skin.
The CPU bar in the second one is refreshing wayyy faster than the first one. Even tough, I have set Updatedivider=20 in both of them
What am I doing wrong? What is the ideal refreshrate for CPU or RAM measures
You do not have the required permissions to view the files attached to this post.
BOOTY
User avatar
David8192
Posts: 216
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Help with Update divider

Post by David8192 »

Alloutofmercy wrote: January 13th, 2022, 7:31 pm

Code: Select all

[Meterred]
meter=image
SolidColor=235,51,104,150
x=(-#XPos# + 190)
y=300
w=300
h=200
DynamicVariables=1
Group=Usage
Hidden=1
[measureCPU]
; This measure returns the average CPU load between all cores.
Measure=CPU
Processor=0
UpdateDivider=20
Group=Usage
Hidden=1

[measureRAM]
; Returns the amount of RAM used in bytes.
Measure=PhysicalMemory
UpdateDivider=20
; UpdateDivider sets the rate at which the value of the measure is updated. It is
; calculated as follows: UpdateDivider x Update. In this case, Update is set to
; 1000 milliseconds (in the [Rainmeter] section). 1000 x 20 = 20000 ms or 20 seconds.
Group=Usage
;styles
Hidden=1

[styleLeftText]
StringAlign=Left
FontColor=#colorText#
FontFace=Teko
FontSize=14
AntiAlias=1
Group=Usage
Hidden=1

[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
Group=Usage
Hidden=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30
Group=Usage
Hidden=1

[meterTitle]
Meter=String
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
Group=Usage
W=190
H=18
Text=System
FontFace=Teko
FontColor=#Fontvar#
Fontsize=25
AntiAlias=1
x=(-#XPos# + 290)
y=312
DynamicVariables=1
Hidden=1

[meterLabelCPU]
Meter=String
MeterStyle=styleLeftText
x=(-#XPos# + 220)
Y=340
W=190
H=14
Text=CPU Usage
DynamicVariables=1
Group=Usage
Hidden=1

[meterValueCPU]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureCPU
x=(-#XPos# +420)
Y=363
DynamicVariables=1
Text=%1%
UpdateDivider=1000
Group=Usage
Hidden=1

[meterBarCPU]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureCPU
x=(-#XPos# + 220)
Y=360
W=190
H=20
DynamicVariables=1
UpdateDivider=1000
Group=Usage
Hidden=1

[meterLabelRAM]
Meter=String
MeterStyle=styleLeftText
X=(-#XPos# + 220)
Y=390
W=190
H=14
Text=RAM Usage
DynamicVariables=1
Group=Usage
Hidden=1

[meterValueRAM]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureRAM
x=(-#XPos# +420)
Y=413
W=190
H=14
Text=%1%
Percentual=1
DynamicVariables=1
Group=Usage
Hidden=1

[meterBarRAM]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureRAM
x=(-#XPos# + 220)
Y=410
W=190
H=20
DynamicVariables=1
Group=Usage
Hidden=1

And

Code: Select all

[Meterred]
meter=image
SolidColor=#Accent9#,80
X=0
y=0
h=300
w=300

[measureCPU]
; This measure returns the average CPU load between all cores.
Measure=CPU
Processor=0

[measureRAM]
; Returns the amount of RAM used in bytes.
Measure=PhysicalMemory
UpdateDivider=20
; UpdateDivider sets the rate at which the value of the measure is updated. It is
; calculated as follows: UpdateDivider x Update. In this case, Update is set to
; 1000 milliseconds (in the [Rainmeter] section). 1000 x 20 = 20000 ms or 20 seconds.

[measureSWAP]

Measure=SwapMemory
UpdateDivider=20


[styleLeftText]
StringAlign=Left
FontColor=#colorText#
FontFace=Teko
FontSize=14
AntiAlias=1


[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30


[meterTitle]
Meter=String
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=150
Y=6
W=190
H=18
Text=System
StringAlign=Center
StringCase=Upper
FontColor=ffffff
FontFace=Die in a fire PG
FontSize=20
AntiAlias=1

; Even though the text is set to System, Rainmeter will display
; it as SYSTEM, because styleTitle contains StringCase=Upper.
LeftMouseUpAction=["taskmgr.exe"]
; Left-clicking this meter will launch taskmgr.exe (the Task Manager).
ToolTipText=Open Task Manager
; Hovering over this meter will display a tooltip with the text above.

[meterLabelCPU]
Meter=String
MeterStyle=styleLeftText
X=10
Y=50
W=190
H=14
Text=CPU Usage

[meterValueCPU]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureCPU
X=210
Y=72

Text=%1%

[meterBarCPU]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureCPU
X=10
Y=70
W=190
H=20

[meterLabelRAM]
Meter=String
MeterStyle=styleLeftText
X=10
Y=100
W=190
H=14
Text=RAM Usage

[meterValueRAM]
Meter=String
fONTCOLOR=ffffff
AntiAlias=1
FONTFACE=Teko
fontsize=15
MeasureName=measureRAM
X=210
Y=122
W=190
H=14
Text=%1%
Percentual=1

[meterBarRAM]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureRAM
X=10
Y=120
W=190
H=20
are almost very similar. The second one is from a skin that I made a long time ago, which I am integrating into my other larger skin.
The CPU bar in the second one is refreshing wayyy faster than the first one. Even tough, I have set Updatedivider=20 in both of them
What am I doing wrong? What is the ideal refreshrate for CPU or RAM measures
UpdateDivider is affected by the Rainmeter section. What is your skins' Update?
the DA GALLERY 8-) For some Reason, the square root of X2 does not involve X
User avatar
balala
Rainmeter Sage
Posts: 13719
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help with Update divider

Post by balala »

Alloutofmercy wrote: January 13th, 2022, 7:31 pm What is the ideal refreshrate for CPU or RAM measures
As David8192 said, the update of a measure or meter is controlled by both, the Update option of the [Rainmeter] section, as well as the UpdateDivider option set on the measure or meter itself. For most skins the default Update=1000 (in [Rainmeter] section) is the best approach. Furthermore most (or even all) skins using WebParser measures (at least those parsing online resources - however how often go such skins online to get the resources is controlled by the UpdateRate option of the parent WebParser measure as well) practically must have the default Update=1000 option (and UpdateDivider=1 on the parent WebParser measure).
For CPU and RAM measures the default UpdateDivider=1 is again the best approach. In fact for most skins and most measures / meters, these are the best options. Exceptions are the visualizer skins and skins showing up some animations, which have to have a much lower Update value.
You can find a very good description of all this things here: https://docs.rainmeter.net/tips/update-guide/
User avatar
Alloutofmercy
Posts: 103
Joined: November 17th, 2021, 5:51 am

Re: Help with Update divider

Post by Alloutofmercy »

Code: Select all

[measureCPU]
Measure=CPU
Processor=0
UpdateDivider=1
Group=Usage
Hidden=1

Code: Select all

[Rainmeter]
update=1000
This is what I've set for my meter. However something is bothering it and it is not updating by that rate
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 13719
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help with Update divider

Post by balala »

Alloutofmercy wrote: January 14th, 2022, 7:21 am This is what I've set for my meter. However something is bothering it and it is not updating by that rate
And what UpdateDivider is set on the (probably String) meter, showing the result returned by the [measureCPU] measure?
User avatar
Alloutofmercy
Posts: 103
Joined: November 17th, 2021, 5:51 am

Re: Help with Update divider

Post by Alloutofmercy »

Oh it was set to 1000 by mistake! Thankyou and uhh sorry it was a pretty simple mistake
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 13719
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help with Update divider

Post by balala »

Alloutofmercy wrote: January 14th, 2022, 9:33 am Oh it was set to 1000 by mistake! Thankyou and uhh sorry it was a pretty simple mistake
Let's see if I understood: have you set an UpdateDivider=1000 on the appropriate String (or whatever) meter? :Whistle
User avatar
Alloutofmercy
Posts: 103
Joined: November 17th, 2021, 5:51 am

Re: Help with Update divider

Post by Alloutofmercy »

yeah
BOOTY