Blender V5.3
CacheEvictionManager Class Reference

#include <cache_eviction.h>

Public Member Functions

 CacheEvictionManager (bool background)
void reset ()
void set_navigating (bool navigating)
bool is_navigating () const
bool need_eviction (bool idle, bool switched_to_new_tile)
std::chrono::milliseconds wait_time (bool idle) const

Detailed Description

Definition at line 16 of file cache_eviction.h.

Constructor & Destructor Documentation

◆ CacheEvictionManager()

CCL_NAMESPACE_BEGIN CacheEvictionManager::CacheEvictionManager ( bool background)
explicit

Definition at line 14 of file cache_eviction.cpp.

Member Function Documentation

◆ is_navigating()

bool CacheEvictionManager::is_navigating ( ) const

Definition at line 30 of file cache_eviction.cpp.

◆ need_eviction()

bool CacheEvictionManager::need_eviction ( bool idle,
bool switched_to_new_tile )

Definition at line 35 of file cache_eviction.cpp.

References time_dt(), and wait_time().

Referenced by Session::run_update_for_next_iteration().

◆ reset()

void CacheEvictionManager::reset ( )

Definition at line 16 of file cache_eviction.cpp.

Referenced by Session::run_update_for_next_iteration().

◆ set_navigating()

void CacheEvictionManager::set_navigating ( bool navigating)

Definition at line 25 of file cache_eviction.cpp.

Referenced by Session::set_navigating().

◆ wait_time()

std::chrono::milliseconds CacheEvictionManager::wait_time ( bool idle) const

Definition at line 77 of file cache_eviction.cpp.

References max, and time_dt().

Referenced by need_eviction(), and Session::run_wait_for_work().


The documentation for this class was generated from the following files: