debian man page for sdl::gfx::framerate

Query: sdl::gfx::framerate

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

pods::SDL::GFX::Framerate(3pm)				User Contributed Perl Documentation			    pods::SDL::GFX::Framerate(3pm)

NAME
SDL::GFX::Framerate - framerate calculating functions
CATEGORY
GFX
DESCRIPTION
The framerate functions are used to insert delays into the graphics loop to maintain a constant framerate.
METHODS
init use SDL; use SDL::GFX::Framerate; use SDL::GFX::FPSManager; my $fps = SDL::GFX::FPSManager->new(0, 0, 0, 0); SDL::GFX::Framerate::init($fps); Initialize the framerate manager, set default framerate of 30Hz and reset delay interpolation. set SDL::GFX::Framerate::set($fps, 60); Sets the new desired framerate to 60 frames per second. get my $rate = SDL::GFX::Framerate::get($fps); Get the currently set framerate of the manager. delay SDL::GFX::Framerate::delay($fps); Generate a delay to accommodate the currently set framerate. Call once in the graphics/rendering loop. If the computer cannot keep up with the rate (i.e. drawing too slow), the delay is zero and the delay interpolation is reset.
AUTHORS
See "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDL::GFX::Framerate(3pm)
Related Man Pages
sdl::cursor(3pm) - debian
sdl::gfx::primitives(3pm) - debian
sdl::mpeg(3pm) - debian
sdl::time(3pm) - debian
sdlx::fps(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
awk or sed - Convert 2 lines to 1 line
One instance of comparing grep and awk
New UNIX and Linux History Sections