Hey Guys,
Im currently kinda rewriting my own plugin and Im actually wondering if theres any problem with using every 0.1 seconds Player.observer_target for each player for my spectator list plugin, or should I rather cache it by checking every players "spec_next" "spec_previous"?
Performance (Repeat)
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: Performance (Repeat)
Depend of your implementation. If you loop through all players creating new instances (via PlayerIter, for example), then yes, it can be very slow. On the other hand, if you cache the instances (using PlayerDictionary, for example) then you can gain performance. However, performance should be considered once it becomes an issue.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 67 guests