Skip to content

Optimize Zthuee projectiles (amongst other projectile things)#3718

Merged
Garanas merged 7 commits intoFAForever:deploy/fafdevelopfrom
Garanas:optimize-projectiles-example
Mar 25, 2022
Merged

Optimize Zthuee projectiles (amongst other projectile things)#3718
Garanas merged 7 commits intoFAForever:deploy/fafdevelopfrom
Garanas:optimize-projectiles-example

Conversation

@Garanas
Copy link
Member

@Garanas Garanas commented Mar 24, 2022

Our benchmark is 400 Zthuee firing at once on the map White Fire. The map has no civilians. All functionality of the original projectile is still there, just faster. A base line is the same scenario, but without the Zthuee firing.

On the FAF branch: 12 - 14 ms with a base line of 3 ms
here-is-gif-15-faf

This pull request: 9 - 12 ms with a base line of 3 ms
here-is-gif-15-develop

This pull request, without decals: 9 - 10.5 ms with a base line of 3 ms
here-is-gif-15-develop-no-decals

If we'd reduce the base lines:

  • FAF branch: 9 - 11 ms for firing
  • This pull request: 6 - 9 ms for firing
  • This pull request, without decals: 6 - 7.5 ms when firing

Therefore we can safely assume that there's at least a 20% performance improvement. Some of these changes apply to all projectiles.

@Garanas
Copy link
Member Author

Garanas commented Mar 25, 2022

Ran tests on several games, all appears to be good.

@Garanas Garanas merged commit 4c3848d into FAForever:deploy/fafdevelop Mar 25, 2022
Garanas added a commit that referenced this pull request Apr 13, 2022
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