Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#12215·pixijs

RenderGroup with enabled cacheAsTexture performs a lot of unnececary operations if not renderable

Author: NIKENITCreated Sep 18, 2026Updated Sep 18, 2026

PixiJS version

8.20.1

Link to minimal reproduction

https://codesandbox.io/p/devbox/elegant-thompson-ck2pj8?workspaceId=ws_GW2bZbEsM1qeeNyr5nyN1Z

Steps to reproduce

Create a container, call ".cacheAsTexture(true)", set .culled = true, look at the _updateCachedRenderGroups being called every frame in the debugger with flag "textureNeedsUpdate" set to true even though the container does not change.

What is expected?

RenderGroup should probably not try to update itself and "prepareTexture" on every frame if not renderable.

What is actually happening?

The "textureNeedsUpdate" flag is never removed for not renderable renderGroups, and the operation never checks if the groups are actually renderable before performing returning their texture to the pool and requesting a new one.

The group performs costly operations with it's texture every frame as a result, even though it is not needed as the group is not being rendered nor changed.

System Info

bash
System:
    OS: Windows 11 10.0.26200
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13600KF
    Memory: 23.34 GB / 63.77 GB
  Browsers:
    Chrome: 153.0.8010.48
    Edge: Chromium (152.0.4191.53)
    Firefox: 155.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe

Any additional comments?

No response

Source: pixijs/pixijs

View original on GitHubView discussion on GitHub