C
C#2y ago
Conrado

❔ optimization

Sincere question about optimization here... The RenderFirstTab() method is called in an infinite loop. Should I instantiate the FSLabel class just once in another location, and then call just the Render() method inside the Loop, or it's ok to do it this way:
5 Replies
Jimmacle
Jimmacle2y ago
i'm not sure what framework this is but you should probably cache it
JakenVeina
JakenVeina2y ago
almost certainly you should not be newing up unique objects each time
Anton
Anton2y ago
it's ok if it's a struct
JakenVeina
JakenVeina2y ago
True, syntax highlighting indicates it's not
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server