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

Remove dead code of alwaysLoaded #7175

Merged
merged 3 commits into from
Nov 20, 2024
Merged

Remove dead code of alwaysLoaded #7175

merged 3 commits into from
Nov 20, 2024

Conversation

Bouh
Copy link
Collaborator

@Bouh Bouh commented Nov 18, 2024

Fix: GDevelopApp/GDevelop-documentation#235

Documentation fix:
#7173

Be sure to mention in the next release notes:
Textures are loaded dynamically when needed in a scene, while audio files must be preloaded on some hardware to prevent delays before playback.

This PR remove dead code, ensuring users understand it had zero effect on their games! This was old code from GD4. The most important part is to clarify that the optimizations are only for preloading audio files.

Copy link
Collaborator

@ClementPasteau ClementPasteau left a comment

Choose a reason for hiding this comment

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

lgtm, maybe @4ian can double check for safety

Copy link
Owner

@4ian 4ian left a comment

Choose a reason for hiding this comment

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

ok after adding back a few things removed that impact JSON resources

@Bouh
Copy link
Collaborator Author

Bouh commented Nov 19, 2024

I did the fix you mentionned.

Can I ask why we are keeping these, I can't see any part of the code from the repo using this property. Even for json.

@4ian
Copy link
Owner

4ian commented Nov 20, 2024

You're right! Your original changes were correct. You can remove all the alwaysLoaded like you originally did 👍
Sorry for the confusion!

This reverts commit fcb0c73.
@Bouh
Copy link
Collaborator Author

Bouh commented Nov 20, 2024

You're right! Your original changes were correct. You can remove all the alwaysLoaded like you originally did 👍 Sorry for the confusion!

Done

@4ian 4ian merged commit 90004e3 into master Nov 20, 2024
4 of 6 checks passed
@4ian 4ian deleted the remove-dead-code branch November 20, 2024 20:32
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.

3 participants