Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize texture access on export #60

Open
rsubtil opened this issue Aug 13, 2023 · 3 comments
Open

Optimize texture access on export #60

rsubtil opened this issue Aug 13, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@rsubtil
Copy link
Owner

rsubtil commented Aug 13, 2023

Currently, the addon fetches separate image files for all button prompts. While this makes it easier for users to modify, it is inefficient, since the most popular solution is to have only one large image atlas.

It might be possible, however, to optimize this step on exported projects. The idea is to build the texture atlas and then fetch from there, instead of the individual image files (and don't even pack them on export).

@rsubtil rsubtil added the enhancement New feature or request label Aug 13, 2023
@mubinulhaque
Copy link

You could also try using Resources to specify images (or file paths) for each controller. That way, images can be shared between multiple controllers.

@rsubtil
Copy link
Owner Author

rsubtil commented Sep 23, 2023

You could also try using Resources to specify images (or file paths) for each controller. That way, images can be shared between multiple controllers.

The addon already caches texture assets, so in practice textures are already shared. This solution wouldn't help much because the issue is that there's many small textures in VRAM, which is less efficient than having one big texture atlas.

@mubinulhaque
Copy link

mubinulhaque commented Sep 26, 2023

That's a good point. However, in order to make icons for multiple controllers, you need to duplicate assets and place them in their corresponding folder, which is wasteful of both developer time and storage space.

For example, left stick click does not need a separate image for each controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants