frameRate()

Environment

Description

Sets the target number of frames to display per second.

Syntax

void frameRate(int fps)

Parameters

NameTypeDescription
fpsinttarget frames per second

Returns

void

Related

Under the Hood

From Processing.h:

void frameRate(int fps);

Under the Hood

From Processing.cpp:

void PApplet::frameRate(int fps){currentFrameRate=fps;targetFrameTime=1.0/fps;}