pods::...amerate(3pm)
π pods::...amerate(3pm) π
okay so this is the pods::...amerate(3pm) page, and the manual it lives in is User Contributed Perl Documentation. welcome to the group chat, bestie π«Ά
β¨ NAME β¨
SDL::GFX::Framerate β literally the framerate calculating functions, no cap. π
π CATEGORY π
GFX β that's the category, bestie. π
π¦ DESCRIPTION π¦
okay so the framerate functions are used to insert delays into the graphics loop to maintain a constant framerate. that's the whole vibe β¨
π METHODS π
the methods are giving main character energyβhere's every single one. π
πΈ 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);
Initializes the framerate manager, sets the default framerate of 30Hz, and resets delay interpolation. iconic setup behavior, fr fr. π§
β set β
SDL::GFX::Framerate::set($fps, 60);
Sets the new desired framerate to 60 frames per second. slay. π₯
π get π
my $rate = SDL::GFX::Framerate::get($fps);
Get the currently set framerate of the manager. simple, useful, no notes. β¨
π 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.
mwah π that's the pageβperl v5.42.0, dated 2024-05-01, with pods::...amerate(3pm) living its best life at the very end. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms