Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1570

Site Discussion • Re: Small docs suggestions

$
0
0
This behavior is mentioned in the main docs for the options Disabled and Paused....although it may not be obvious to a plugin developer.
https://docs.rainmeter.net/manual/measures/general-options/#Disabled

When a plugin is used in a skin, Rainmeter will always call the Initialize, Reload and Finalize functions. Reload will be called initially (after Initialize), and also on every update if DynamicVariables=1 is used. Update is only called if the measure is NOT disabled/paused. GetString is called "on demand" whenever the string is needed by Rainmeter. This can happen multiple times during the update cycle or in other places (like the Manage and About dialogs).

Ideally, plugins should do their "work" in the Update function. This includes storing any "string" value so that subsequent calls to GetString can minimize any processing (since it can be called several times during Update [see above]).


Having said all that, I think the best place for this "note" might be on the "Anatomy" page instead of the "Guideline" page....but I leave that up to you since you are doing the PR.

-Brian

Statistics: Posted by Brian — Yesterday, 10:47 pm



Viewing all articles
Browse latest Browse all 1570

Trending Articles