JohnSundell / JohnSundell/ImagineEngine

Automatically load textures with higher resolution than the screen

Open
#149 4 comments 0 reactions 0 assignees View on GitHub
help wanted improvement
Dominant language
Swift
Stars
1.8k
Forks
104
PR merge metrics
No merged PRs in 30d

Description

Currently, we only automatically fall back to textures with a *lower* resolution than the screen that the game is running on (for example, if the game is running on an iPhone X and there's no `@3x` asset, then the `@2x` or `@1x` version will be automatically loaded).

We should do the same thing for falling back to a *higher* resolution as well, that is if the screen is an `@1x` screen but there's only an `@2x` asset, that asset should be loaded.

Texture loading takes place in `TextureManager` and `BundleTextureImageLoader`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.