Skip to content

Refactor/performance improvement#562

Open
smitdylan2001 wants to merge 3 commits into
ValveSoftware:masterfrom
smitdylan2001:refactor/performanceImprovement
Open

Refactor/performance improvement#562
smitdylan2001 wants to merge 3 commits into
ValveSoftware:masterfrom
smitdylan2001:refactor/performanceImprovement

Conversation

@smitdylan2001

Copy link
Copy Markdown

Some non-breaking performance improvements. This also fixes the obsoleted code, which gave a warning in 6.4, and error in 6.5.

Performance fixes

  • Change String.Format to Concatenation
  • Remove FindObjectsSortMode.None, as this is depricated
  • Make methods static where possible
  • Use stromg.IsNullOrEmpty where possible
  • Use local structs instead of array references for many references inside of a loop
  • Cache FindObjectsByType outside of loops where possible
  • Merge if-return to single return
  • Use .AddRange

Big possible future improvements:

  • Jobify and burst compile the most important pipeline
  • Use the MeshDataAPI to read meshes

If there is interest in that, let me know as well

- Change String.Format to Concatenation
- Remove FindObjectsSortMode.None, as this is depricated
- Make methods static where possible
- Use stromg.IsNullOrEmpty where possible
- Use local structs instead of array references for many references inside of a loop
- Cache FindObjectsByType outside of loops where possible
- Merge if-return to single return
- Use .AddRange
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