Skip to content

Conversation

@theo-rapidfire
Copy link
Contributor

fix/use-type-cache

Description

The PropertyDrawerType cache generation had a performance bottleneck, which could be resolved by using Unity's TypeCache.

Performance before:

  1. Selecting Item A
    image
  2. Selecting Item B
    image

Performance after:

  1. Selecting Item A
    image
  2. Selecting Item B
    image

Changes made

  • Converted PropertyDrawerCache type detection to use TypeCache

@theo-rapidfire theo-rapidfire changed the title Use TypeCache instead of manual type iteration Performance improvement: Use TypeCache instead of manual type iteration Mar 29, 2024
@mackysoft mackysoft merged commit 2b40c3d into mackysoft:main Apr 1, 2024
@mackysoft
Copy link
Owner

Function confirmed. Thanks @theo-rapidfire !

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