Skip to content

Keep list of PauseOnX assets instead of scanning every frame - #1304

Merged
Jamiras merged 4 commits into
RetroAchievements:masterfrom
Jamiras:feature/asset_pause_perf
Mar 31, 2026
Merged

Jamiras merged 4 commits into
RetroAchievements:masterfrom
Jamiras:feature/asset_pause_perf

Conversation

@Jamiras

@Jamiras Jamiras commented Mar 25, 2026

Copy link
Copy Markdown
Member

Addresses the performance concern reported in #1302.

The GameAssets object will now keep an internal list of assets flagged to PauseOnReset or PauseOnTrigger. When AchievementRuntime::DoFrame is called, it can simply query the GameAssets object to tell if there are any PauseOnX assets instead of scanning the entire asset collection every frame.

@Jamiras
Jamiras merged commit 93fec0b into RetroAchievements:master Mar 31, 2026
6 checks passed
@Jamiras
Jamiras deleted the feature/asset_pause_perf branch March 31, 2026 00:11
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.

1 participant