Skip to content

Conversation

@xxAtrain223
Copy link
Contributor

@xxAtrain223 xxAtrain223 commented Jun 22, 2025

I noticed that the file choose screen was stuttering. I used the VS profiler and found that SpoilerFileExists was being called every frame and that it was reading the spoiler file every time. So I cached the results and reduced the file IO to check if the file still exists and if it has been modified.

Note that this could be made unnecessary by caching the results in FileChoose_UpdateRandomizer, but I choose to do it in SpoilerFileExists because I was unsure how often/likely the SpoilerLog would change on the menu screen (load straight into a game or generate multiple seeds for testing) and it was easier to do in C++.

Before caching:
image

After caching:
image

Build Artifacts

@Malkierian Malkierian merged commit afde504 into HarbourMasters:develop-blair Jun 23, 2025
6 checks passed
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request Jun 24, 2025
krazyjakee pushed a commit to krazyjakee/OOT that referenced this pull request Sep 6, 2025
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