Previous  Next


rate = MAL.FrameRate( [BYVAL new_rate AS INTEGER=NULL] ) AS INTEGER



Sets or returns the frame rate used by functions that requires the frame rate such as derivatives and filters.  The default frame rate is set to 1.  The function will return the current rate if the parameter is omitted otherwise it will set the rate to the specified rate and return the rate after setting it.  If the rate can't be set, then the function raises an error.




PRINT "New Frame Rate: ";MAL.FrameRate( 60 ),