From 0148d661b2a7a3762faec5373273b42624a646d5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 16 Nov 2009 22:03:41 +0000 Subject: made [fps] have no interaction possible besides the single argument, then to get the current fps, you use [value framesync/fps] svn path=/trunk/externals/framesync/; revision=12773 --- fps-help.pd | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'fps-help.pd') diff --git a/fps-help.pd b/fps-help.pd index 1bc9e9a..585290c 100644 --- a/fps-help.pd +++ b/fps-help.pd @@ -1,13 +1,15 @@ -#N canvas 134 291 450 300 10; +#N canvas 535 476 450 300 10; #X text 38 24 Set the global Frames-Per-Second (FPS) for the global clock when using the 'framesync' library. You should only use this object once in a project. [frameclock] uses this object to set the FPS \, so if you are using [frameclock] \, don't use [fps] also.; #X msg 135 206 bang; #X floatatom 135 254 5 0 0 0 - - -; -#X obj 135 230 fps; -#X obj 135 128 fps 24; -#X text 39 157 You can use it with no argument to get the current FPS -(careful not to set the FPS more than once!):; -#X connect 1 0 3 0; -#X connect 3 0 2 0; +#X obj 165 117 fps 24; +#X obj 135 230 value framesync/fps; +#X text 39 157 If you want to get the current global FPS value \, then +bang [value framesync/fps]:; +#X obj 177 255 print current FPS; +#X connect 1 0 4 0; +#X connect 4 0 2 0; +#X connect 4 0 6 0; -- cgit v1.2.1