Tirex:...Bucket(3pm)
๐ Tirex::...Bucket(3pm) ๐
okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's literally called Tirex::...Bucket(3pm) โ yes the dots are part of the name, it's giving mysterious โจ. Buckle up, we're talking rendering buckets.
๐ธ NAME ๐ธ
Tirex::Manager::Bucket โ rendering buckets for different priorities. that's it, that's the whole vibe ๐ชฃ๐
โจ SYNOPSIS โจ
the lil sneak peek, no cap:
use Tirex::Manager::Bucket;
my $bucket = Tirex::Manager::Bucket->new( name => 'test', minprio => 1, maxproc => 8, maxload => 20 );
๐ฆ DESCRIPTION ๐ฆ
so like, configuring rendering parameters for every single zoom level by hand? absolutely not ๐ โโ๏ธ that's why Buckets exist, bestie. one Bucket holds all the config for a range of zoom levels. it's giving organized. it's giving main character energy. one bucket, one zoom-level range, periodt. ๐
๐ METHODS ๐
๐ Tirex::Manager::Bucket->new( name => $name, minprio => $minprio, maxproc => $maxproc, maxload => $maxload )
spawn a brand-new rendering bucket โจ like, congratulations on the new baby bucket ๐ผ
๐ $bucket->add_job($job)
drop a Tirex::Job into the bucket. plop. it lives there now ๐ซถ
๐ $bucket->remove_job($job)
take a Tirex::Job back out of the bucket. bye bestie, we loved having you ๐ญ
๐ $bucket->get_name()
hand over the name of the bucket. that's it. iconic, brief, slay.
๐ $bucket->get_numproc()
returns how many rendering processes are currently working on jobs in this bucket right now, at this very moment ๐ literally right now.
๐ $bucket->get_minprio()
grab the minimum priority for this bucket โฌ๏ธ
๐ $bucket->get_maxprio()
grab the maximum priority for this bucket โฌ๏ธ BUT โ and this is important bestie โ the maximum priority has to be set with set_maxprio() before this works. no setting, no getting. that's the rule ๐
๐ $bucket->set_maxprio($maxprio)
set the maximum priority for this bucket. now get_maxprio() will actually have something to say ๐
๐ $bucket->get_active()
get the active flag for this bucket. is it awake? is it slaying? find out ๐
๐ $bucket->set_active($active)
set the active flag for this bucket. turn the vibe on or off ๐๏ธ
๐ $bucket->for_prio($prio)
check whether this bucket is the right one for the given priority โ ie. whether the priority is between min- and maxprio. it's a vibe check for priorities โ
๐ $bucket->can_render($num_rendering, $current_load)
figures out whether a job in this rendering bucket can be rendered. the moment of truth ๐ฎ
Returns:
1โ if it can be rendered ๐ go go go0โ if there are alreadymaxprocor more rendering processes, or if bucket is not active ๐undefโ if the load is higher or equal thanmaxload๐ฌ
๐ $bucket->status($num_rendering, $current_load)
return status of bucket. that's the whole thing, bestie ๐
and that's the page fr fr ๐ซถ written by the User Contributed Perl Documentation girlies, perl v5.40.1, dated 2026-08-09 โ mwah, no notes ๐โจ
๐ฆ where this page comes from
- ubuntu stonking: tirex 0.8.0+ds-2build3 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms