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

Always enable optimizations on image loader #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RaduBerinde
Copy link
Contributor

The examples that involve textures show a noticeable delay at start
in dev mode; the delay is not there in release mode. I tracked this
down to the image library. This commit changes the profile for the
image library and the jpg and png decoding libraries to use
optimizations and disable debug assertions.

@RaduBerinde RaduBerinde force-pushed the faster-image-loading branch from 7a06410 to 24c0c9c Compare July 22, 2022 14:18
The examples that involve textures show a noticeable delay at start
in dev mode; the delay is not there in release mode. I tracked this
down to the image library. This commit changes the profile for the
image library and the jpg and png decoding libraries to use
optimizations and disable debug assertions.
@RaduBerinde RaduBerinde force-pushed the faster-image-loading branch from 24c0c9c to dc79605 Compare July 22, 2022 14:19
@RaduBerinde
Copy link
Contributor Author

CC @donkeyteethUX

Copy link
Collaborator

@donkeyteethUX donkeyteethUX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tend to think it's best to leave the dev profile alone in the crate configuration. For development, cargo profiles can always be customized via a config.toml.

I don't think anyone would be too surprised that image decoding is slow without compiler optimizations.

@RaduBerinde
Copy link
Contributor Author

RaduBerinde commented Jul 26, 2022

The problem is that it takes a bit of work to figure out that the image loading is what's causing slow startup times. At least one other person ran into this: #240 (comment)

Should we maybe include a note somewhere in the README?

@donkeyteethUX
Copy link
Collaborator

Sure, feel free to add a note if you think it's helpful.

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

Successfully merging this pull request may close these issues.

2 participants