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 go
  • 0 โ€” if there are already maxproc or more rendering processes, or if bucket is not active ๐Ÿ›‘
  • undef โ€” if the load is higher or equal than maxload ๐Ÿ˜ฌ

๐Ÿ’œ $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