It is currently May 7th, 2024, 6:32 am

Another problem with Rotator (Split)

Get help with creating, editing & fixing problems with skins
Asmani
Posts: 7
Joined: December 23rd, 2010, 12:29 pm

Another problem with Rotator (Split)

Post by Asmani »

I got a diferent problem with Rotator.
When I have it ON the CPU usage of Rainmeter is 20-25% all the time.

Any one maybe knows what I can do to have it at normal 0-1% usage?

This is code of Rotator:

Code: Select all

[Rainmeter]
BackgroundMode=1
Author=yalishy (yalishy@gmail.com)
AppVersion=10000
Update=40

;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
LineColor70=0,0,0,70
LineColor100=0,0,0,100
LineColor200=0,0,0,200
SolidColor=0,0,0,1
SolidColor200=0,0,0,200


[CalcMeasure2400]
Measure=Calc
Formula=Counter %2400

[CalcMeasure1500]
Measure=Calc
Formula=Counter %1500

[CalcMeasure1400]
Measure=Calc
Formula=Counter %1400

[CalcMeasure1000]
Measure=Calc
Formula=Counter %1000

[CalcMeasure900]
Measure=Calc
Formula=Counter %900

[MeasureTime2400]
Measure=Calc
Formula=CalcMeasure2400

[MeasureTime1500]
Measure=Calc
Formula=CalcMeasure1500

[MeasureTime1400]
Measure=Calc
Formula=CalcMeasure1400

[MeasureTime1000]
Measure=Calc
Formula=CalcMeasure1000

[MeasureTime900]
Measure=Calc
Formula=CalcMeasure900

-------------------------------------------------------------------------------------------

[MeterUnder7]
MeasureName=MeasureTime1500
Meter=ROTATOR
X=347
Y=145
W=387
H=387
ImageName=1xb.png
StartAngle=6.2832
RotationAngle=6.2832
ValueReminder=1500
OffsetX=190
OffsetY=190
Hidden=0

[MeterUnder8]
MeasureName=MeasureTime1000
Meter=ROTATOR
X=347
Y=145
W=387
H=387
ImageName=2xb.png
StartAngle=6.2832
RotationAngle=-6.2832
ValueReminder=1000
OffsetX=190
OffsetY=190
Hidden=0

[MeterUnder9]
MeasureName=MeasureTime900
Meter=ROTATOR
X=347
Y=145
W=387
H=387
ImageName=3xb.png
StartAngle=6.2832
RotationAngle=6.2832
ValueReminder=900
OffsetX=190
OffsetY=190
Hidden=0

[MeterUnder10]
MeasureName=MeasureTime1400
Meter=ROTATOR
X=350
Y=148
W=381
H=381
ImageName=5xb.png
StartAngle=6.2832
RotationAngle=6.2832
ValueReminder=1400
OffsetX=190
OffsetY=190
Hidden=0

[MeterUnder11]
MeasureName=MeasureTime2400
Meter=ROTATOR
X=315
Y=114
W=450
H=450
ImageName=6xb.png
StartAngle=6.2832
RotationAngle=6.2832
ValueReminder=2400
OffsetX=219
OffsetY=219
Hidden=0

==================================================================================

[MeasureRing2]
Measure=Calc
Formula=360

[MeterAnalogBG1]
Meter=ROUNDLINE
MeasureName=MeasureRing2
X=336
Y=133
W=410
H=410
LineWidth=5.0
LineLength=201
LineStart=200
StartAngle=47.55
RotationAngle=6.2832
AntiAlias=1
LineColor=#LineColor100#
Solid=1

[MeterAnalogBG2]
Meter=ROUNDLINE
MeasureName=MeasureRing2
X=336
Y=133
W=410
H=410
LineWidth=5.0
LineLength=206
LineStart=205
StartAngle=2.3561945
RotationAngle=1.5707963
AntiAlias=1
LineColor=#LineColor200#
Solid=1

[MeterAnalogBG3]
Meter=ROUNDLINE
MeasureName=MeasureRing2
X=336
Y=133
W=410
H=410
LineWidth=5.0
LineLength=206
LineStart=205
StartAngle=5.4977871
RotationAngle=1.5707963
AntiAlias=1
LineColor=#LineColor200#
Solid=1

[MeterAnalogBG333]
Meter=ROUNDLINE
MeasureName=MeasureRing2
X=336
Y=133
W=410
H=410
LineWidth=5.0
LineLength=145
LineStart=144
StartAngle=47.55
RotationAngle=6.2832
AntiAlias=1
LineColor=#LineColor70#
Solid=1

[MeterBackground1]
Meter=IMAGE
X=750
Y=339
W=256
H=1
SolidColor=#SolidColor200#
SolidColor2=#SolidColor#
GradientAngle=0

[MeterBackground2]
Meter=IMAGE
X=77
Y=339
W=256
H=1
SolidColor=#SolidColor#
SolidColor2=#SolidColor200#
GradientAngle=0

===================================================================================

Last edited by Alex2539 on December 23rd, 2010, 2:03 pm, edited 1 time in total.
Reason: Split into a new topic. Please don't gravedig old posts if you have nothing to add to them.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Another problem with Rotator (Split)

Post by Alex2539 »

The CPU usage is partly caused by the use of large images, but mostly because of the very low update value. You are telling that skin to update once every 40 milliseconds. Most skins update once every second. The quickest way to reduce the CPU usage is to simply increase the value of Update in the [Rainmeter] section.
ImageImageImageImage
Asmani
Posts: 7
Joined: December 23rd, 2010, 12:29 pm

Re: Another problem with Rotator (Split)

Post by Asmani »

I'm not sure if I understood you corectly.
Coz first you say it have a very low update value but then you are saying it have a 40ms value when 100ms is usually update value.

Im confused now...
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Another problem with Rotator (Split)

Post by jsmorley »

Generally speaking, you want:

Update=1000

Up in the [Rainmeter] section of skins. That is the default value, and means the skin will update very 1000ms (or once a second). Setting this lower than 1000 should only be done if you really have some good reason to do something more often than once a second, and that is rare.

Right now your skin is running at an Update of 40ms, (25 times per second) which is just eating your CPU alive.
Asmani
Posts: 7
Joined: December 23rd, 2010, 12:29 pm

Re: Another problem with Rotator (Split)

Post by Asmani »

Ok, I understand it now.

And it is working but at the same time it doesn't work. ;/
Coz changing the value to 1000 make Rotator rotates only every second which is pointless. Heh.
Isnt there any walk around it? That I will have a low CPU consumption but smooth Rotator moves?
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Another problem with Rotator (Split)

Post by Alex2539 »

None that I've found. Rainmeter was not designed for smooth animation, so forcing it to do so is possible but at the cost of system resources.
ImageImageImageImage
Asmani
Posts: 7
Joined: December 23rd, 2010, 12:29 pm

Re: Another problem with Rotator (Split)

Post by Asmani »

Ok, thx for explanation.