Skip to content

Reduce loading time#998

Closed
frostice482 wants to merge 13 commits into
Steamodded:mainfrom
frostice482:main
Closed

Reduce loading time#998
frostice482 wants to merge 13 commits into
Steamodded:mainfrom
frostice482:main

Conversation

@frostice482
Copy link
Copy Markdown
Contributor

Reduces loading time by not loading atlas and fonts immediately.

Additionally, provides a dpi option to SMODS.Atlas to enforce an atlas' DPI, regardless of G.SETTINGS.GRAPHICS.texture_scaling. Useful for mods that does atlas upscaling from 1x to 2x without any atlas alteration.

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

Comment thread lovely/loading_optimization.toml Outdated
[patches.pattern]
target = 'game.lua'
pattern = '''if not (love.filesystem.read('localization/'..G.SETTINGS.language..'.lua')) or G.F_ENGLISH_ONLY then'''
payload = '''if not (love.filesystem.getInfo('localization/'..G.SETTINGS.language..'.lua')) G.F_ENGLISH_ONLY then'''
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a bad patch. Please check syntax.

Copy link
Copy Markdown
Contributor Author

@frostice482 frostice482 Oct 5, 2025

Choose a reason for hiding this comment

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

The syntax is fine.

Actually, i just checked the dump, and it seemed like language.toml does this already. I'll remove this one.

@frostice482 frostice482 marked this pull request as ready for review October 5, 2025 14:37
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