playcanvas / playcanvas/engine
Inactive sprite forces sprite atlas to load even when set to not Preload
Open
Nobody has claimed this yet.
area: graphics
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Description
Sprite objects force their corresponding texture atlas to load even if the sprite object is disabled in the scene and Preload is unchecked
Steps to Reproduce
- Import texture > create texture atlas > create sprite
- Un-check "Preload" on the sprite and the texture atlas
- Drag sprite into a scene, and disable the sprite object in the scene
- Run or publish the scene, the texture atlas will be loaded (look at the browser's dev tools)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the scene described in the issue with an inactive sprite and browser developer tools open to confirm that the texture atlas loads despite Preload being unchecked. Trace the sprite and texture-atlas asset loading entry points to identify why the disabled object still triggers loading. Done means the atlas remains unloaded in this case while active sprites continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100