pods::...amerate(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

πŸ’… 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