Cleanup: Draw: max_orphan_cycles clarification

This commit is contained in:
Miguel Pozo 2023-10-10 15:49:28 +02:00
parent 478e1ab6d3
commit 96d6003b92
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ void DRW_texture_pool_give_texture_ownership(DRWTexturePool *pool, GPUTexture *t
void DRW_texture_pool_reset(DRWTexturePool *pool)
{
/** Defer deallocation enough cycles to avoid interleaved calls to different DRW_draw/DRW_render
* functions causing constant allocation/deallocation (See #113024). */
const int max_orphan_cycles = 8;
pool->last_user_id = -1;