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

Move tags from traits to CivEffect #528

Open
Nightinggale opened this issue Jan 10, 2022 · 0 comments
Open

Move tags from traits to CivEffect #528

Nightinggale opened this issue Jan 10, 2022 · 0 comments
Labels
Performance Something could be running faster

Comments

@Nightinggale
Copy link
Contributor

As mentioned [url=https://forums.civfanatics.com/threads/imperformat-coding-many-trait-modifiers-bypass-processtrait-work-in-progress.673688/]here[/url], traits aren't cached properly. Instead they are often looped, which is bad for performance. Since traits changes rarely, it's an ideal candidate for caching for performance gains.

Moving the tags to CivEffects will allow using the existing CivEffect cache system. It will also allow other CivEffect granting features to make use of the traits.

Known candidates for caching
[x] getLearningByDoingModifier d3e5f01
[] getLearningByDoingFreeModifier
[] getLearningByDoingRunawayModifier
[] getLearningByDoingRevoltModifier
[] iDomesticMarketDemandModifier --> James Lancaster
[] iRecruitPricesModiferAfrica --> Otto Friedrich von der Groebem
[] iRecruitPricesModiferPortRoyal --> existing Pirate (e.g. Captain Henry Morgan)
[] iCapturingSlaveChanceModifer --> existing Conquistador (nor sure yet)

@Nightinggale Nightinggale added the Performance Something could be running faster label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Something could be running faster
Projects
None yet
Development

No branches or pull requests

1 participant