playcanvas / playcanvas/engine

Inactive sprite forces sprite atlas to load even when set to not Preload

Open
#2,466 3 comments 1 reaction 0 assignees View on GitHub

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
  1. Import texture > create texture atlas > create sprite
  2. Un-check "Preload" on the sprite and the texture atlas
  3. Drag sprite into a scene, and disable the sprite object in the scene
  4. Run or publish the scene, the texture atlas will be loaded (look at the browser's dev tools)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.