Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

refresh interval

Discuss anything to do with plugins

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
lucas_siglo21
Posts: 71
Joined: November 18th, 2007, 6:11 pm
Location: Bariloche, Argentina
Contact:

refresh interval

Post by lucas_siglo21 »

do you someone know how to change the refresh interval of a Plugin from an user config?(the perf plugin does that)
i think i have to update the Return of GetMinRefreshInterval() function but i can't do that for some strange reason.
i program in vb.net

bye

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

You can't go lower than 300ms. Anything lower than that will just default to 300ms.
Anything higher is ok though.

You are right about GetMinRefreshInterval()

lucas_siglo21
Posts: 71
Joined: November 18th, 2007, 6:11 pm
Location: Bariloche, Argentina
Contact:

Post by lucas_siglo21 »

yes!, higher, do i just have to update a variable and put it in there?

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

yes, any value higher than 300 will work.

This is how it looks like in Delphi. I'm sure you will adapt it to your needs.

Code: Select all

// Define the minimum interval that a screen should get fresh data from our
// plugin.
// The actual value used by Smartie will be the higher of this value and
// of the 'dll check interval' setting
// on the Misc tab.  [This function is optional, Smartie will assume
// 300ms if it is not provided.]
Function GetMinRefreshInterval: Integer; stdcall;
begin
	result := 300; // 300 ms
end;
Found it for vb.net too:
' Define the minimum interval that a screen should get fresh data from our plugin.
' The actual value used by Smartie will be the higher of this value and of the "dll check interval" setting
' on the Misc tab. [This function is optional, Smartie will assume 300ms if it is not provided.]
'
Public Function GetMinRefreshInterval() As Integer

Return 300 ' 300 ms (around 3 times a second)

End Function

Post Reply