Skin: Displays an image file
Code: Select all
Skins
ββ ToggleSwitch
Skin.ini
on.png
Code: Select all
[Rainmeter]
Update=1000
[Variables]
STATE=on
[Image]
Meter=Image
ImageName=#STATE#.png
DynamicVariables=1
This is a simple skin that displays an image file.
Have you ever written a code like this?
I feel bad from that code and I never use DynamicVariables=1 option on that Image meter. Because my computer is old enough and I think the skin is wasting computer resources. π Dynamic Variables
The Rainmeter.exe opens on.png file and closes EVERY 1 SECOND. (loading from the disk/cache/memory?)
(The Operation column in the log, CreateFile means Open file in this case.) Filter > Filter...
Process Name is Rainmeter.exe then Include > [Add] > [OK]
Microsoft Docs wrote:Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity.
The following code got same result.
Code: Select all
[Rainmeter]
Update=1000
[MeasureState]
Measure=String
String=on
[Image]
Meter=Image
MeasureName=MeasureState
ImageName=%1.png
Rainmeter Docs wrote:If you are "binding" a measure to a meter with the MeasureName option, you don't need either [] or DynamicVariables. π Dynamic Cheat Sheet, MeasureName
Conditions for image file to repeatedly be opened/closed
βοΈ The skin has an Image meter that displays an image file. ImageName=something.png
βοΈ The Image meter is in a skin frequent update cycle.
[Rainmeter] Update=1000 and [ImageMeter] UpdateDivider=-1 option is not set.
(or [Rainmeter] DefaultUpdateDivider=-1 is not set)
π« DynamicVariables=1 or MeasureName=something option is set on the Image meter.
Reducing a cpu and memory usage of a Rainmeter skin
βοΈ Control the Skin update rate with [Rainmeter] section Update option. Update=-1 Update=1000 Update=60000
βοΈ Control the Measure and Meter update rate. Core Measure with UpdateDivider option.
Code: Select all
[Rainmeter]
Update=1000
DefaultUpdateDivider=-1
AccurateText=1
Especially avoid using DynamicVariables=1 MeasureName=something option on an Image Meter.
βοΈ Set Disabled=1 option on a Script measure if the Lua script doesn't have a function Update().
Code: Select all
[MeasureScript]
Measure=Script
ScriptFile=something.lua
Disabled=1
Code: Select all
[MeasureWebParser]
Measure=WebParser
URL=https://example.com
RegExp=^[\s\S]*$
; RegExp=(?s)^(.*)$
; StringIndex=1
βοΈ Close the About Rainmeter window if you don't use.
βοΈ Don't load a lot of high resolution images.
βοΈ Use a Meter=String(Font file, *.ttf, *.otf) instead of a Meter=Image (Image file) as possible.
# General
tabler Icons - Download (4000+ glyphs, 1775 KB)
Material Icons - Download (2226 glyphs, 347 KB)
RemixIcon - Download (2214 glyphs, 393 KB)
Boxicons - Download (1604 glyphs, 306 KB)
IcoFont - Download (2094 glyphs, 1017 KB)
Font Awesome Free Solid - Download (1389 glyphs, 388 KB)
Line Awesome Solid? - Download (931 glyphs, 220 KB)
ionicons - Download (699 glyphs, 109 KB)
Emoji icon font - Download (654 glyphs, 310 KB)
CoreUI Icons Free - Download (515 glyphs, 142 KB)
Elegant Icon - Download (364 glyphs, 58 KB)
Ligature Symbols - Download (360 glyphs, 82 KB)
Typicons - Download (337 glyphs, 98 KB)
Cryptocoins - Download (332 glyphs, 114 KB)
Elusive Icons - Download (307 glyphs, 78 KB)
Metrize Icons - Download (304 glyphs, 62 KB)
Foundation Icon Fonts - Download (286 glyphs, 56 KB)
Entypo - Download (285 glyphs, 74 KB)
Linearicons - Download (270 glyphs, 80 KB)
Open Iconic - Download (226 glyphs, 28 KB)
Font Awesome Free Regular - Download (211 glyphs, 61 KB)
MFG Labs Iconset - Download (211 glyphs, 55 KB)
Dripicons - Download (203 glyphs, 40 KB)
Line Awesome Regular - Download (146 glyphs, 33 KB)
Genericons Neue - Download (106 glyphs, 21 KB)
Modern Pictograms free ver. - Download (102 glyphs, 26 KB)
Nerd Fonts - Download (3705 glyphs, 826 KB)
# Weather
Weather Icons - Download (247 glyphs, 98 KB)
QWeather Icons - Download (225 glyphs, 72 KB)
Weather Icons Font Set - Download (208 glyphs, 80 KB)
IcoFont - Download (81 glyphs, 70 KB)
Climacons - Download (78 glyphs, 19 KB)
Meteocons - Download (50 glyphs, 25 KB)
# Map
Map Icons - Download (179 glyphs, 47 KB)
# Brands
CoreUI Icons Brand - Download (831 glyphs, 510 KB)
Font Awesome Brands Regular - Download (513 glyphs, 181 KB)
Line Awesome Brands - Download (418 glyphs, 152 KB)
Zocial icons - Download (106 glyphs, 49 KB)
π dp4 Font Viewer ... Glyph preview and Unicode value.
Settings
Notes: Copy the font file to
π Dynamic Cheat Sheet, [Rainmeter] Update, DefaultUpdateDivider [Measure] UpdateDivider, Script, Disabled [Meter] MeasureName
β How a skin is updated, About an Update=1000 by jsmorley
π‘ Keep in mind You should not use the DynamicVariables=1 MeasureName=something option on an Image Meter that displays an image file, if the Image Meter is in a Skin frequent update cycle.