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

Add an option to serve in release mode #34

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Jan 26, 2025

Gives a bit more performance (related to if we have webgl debug on or not) and is generally useful for developers if they have any code using the build mode lookups that we have.

Gives a bit more performance and is useful for developers if they have
any code using the build mode lookups that we have.
@andydotxyz
Copy link
Member

I'm not sure what "serve -release" does... won't this imply that the fyne tool is a production runner for web Fyne apps?

@Jacalz
Copy link
Member Author

Jacalz commented Jan 27, 2025

Would "-no-debug" be better?

@andydotxyz
Copy link
Member

Given that debug is off by default and we have a --debug option I'd have thought changing it so debug was only attached when debug mode is on would be the logical approach.

@Jacalz
Copy link
Member Author

Jacalz commented Jan 27, 2025

Hmm, yeah. Good point. The problem I'm trying to solve is that I want the improved performance from building in release mode without webgl_debug.js. Note sure what the best option is?

@andydotxyz
Copy link
Member

Note sure what the best option is?

Remove the debug file unless --debug flag is set?

@Jacalz
Copy link
Member Author

Jacalz commented Jan 27, 2025

Sounds good. That can also enable the visual debug mode.

@Jacalz Jacalz requested a review from andydotxyz February 26, 2025 07:48
@Jacalz
Copy link
Member Author

Jacalz commented Feb 26, 2025

I have changed the implementation now. Should be good to go :)

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Thanks, looks like a good solution.

@Jacalz Jacalz merged commit da6f2c1 into fyne-io:main Feb 26, 2025
7 checks passed
@Jacalz Jacalz deleted the fyne-serve-release branch February 26, 2025 21:14
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