phaserjs / phaserjs/phaser

Automatic Original Scale Detection for Multiatlas Frames

Open
#7,220 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

Hi Phaser Team,

I’m working with Multiatlas in Phaser 3 and I noticed that when frames are scaled down in the atlas (to save memory or optimize performance), the engine does not automatically restore the frames to their original size. Currently, we have to manually set the scale using customData or setScale().

I would like to suggest a feature where Phaser can automatically detect the original scale of frames in a Multiatlas and render them at their intended size without requiring manual adjustments.

This would simplify the workflow and help developers manage assets more efficiently.

Thank you for considering this feature request.

Best regards,
Mohamed Ramadan

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

Start by tracing Phaser's Multiatlas frame loading and rendering behavior, including how customData and setScale() are currently used. Define how the original scale is represented and detected, then verify that scaled-down atlas frames render at their intended size without manual adjustment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.