Skip to content

Comments

Feat: performance-enhancements#156

Open
garciacsci wants to merge 4 commits intoPlatonymous:masterfrom
garciacsci:feat/performance-enhancements
Open

Feat: performance-enhancements#156
garciacsci wants to merge 4 commits intoPlatonymous:masterfrom
garciacsci:feat/performance-enhancements

Conversation

@garciacsci
Copy link

@garciacsci garciacsci commented Mar 26, 2025

I was suffering performance issues on larger resolutions and saw that a lot of repeat calculations were being run inside of the draw function. This branch moves a lot of that math outside of the draw loop by caching anything that only needs to be calculated once (as far as I could tell). I also did a little refactoring to reduce some repeat code I saw as well.

After making these changes and rebuilding the mod I no longer had any perceptible performance hits and 1oxnes and talkohlooey's seasonal portraits for SVE worked as expected.

@garciacsci garciacsci changed the title Feat/performance enhancements Feat: performance-enhancements Mar 26, 2025
@garciacsci
Copy link
Author

Compiled version can be found here

@Arborsm
Copy link

Arborsm commented Aug 17, 2025

what is ScaleUpData data = ScaleUpMod.ScalesByAsset[texture.Name]; used for? seems no use it

@garciacsci
Copy link
Author

It was a leftover from when I refactored, I think I left it in as a reference but don't remember now

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