Thread Tools Display Modes
07/25/22, 04:21 PM   #1
trollusk
AddOn Author - Click to view addons
Join Date: Nov 2020
Posts: 8
Best way to update compass pin for a moving object?

I'm making an addon that adds some pins to the compass, using CustomCompassPins. Some of the pins are for static things like banks, others are for things that move around:
- group members
- more prominent cardinal compass directions (these have to move when the player moves)

Currently I have an Update that runs every 500ms by default, and recreates these pins. It would be nice to be able to update them more smoothly, but I don't want to hog the CPU and cause performance problems.

Is there a more performance-friendly way to update the pins?
  Reply With Quote
07/25/22, 06:07 PM   #2
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 626
No because according to ZOSDanBatson the UI developer we do not have access to that. If I remember correctly that is handled on the C side. The last time someone asked ZOS the request was denied.
  Reply With Quote
07/26/22, 02:26 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Here is the info about how to achieve the update via an "animation hack" (by Shinni), taken as screenshot from the developer chat (gitter.im).
I hope it relates to your question/usecase nad helps.



You can access the info there:
https://gitter.im/esoui/esoui?at=622...1ef0178e5f51a1
  Reply With Quote
07/26/22, 04:51 PM   #4
trollusk
AddOn Author - Click to view addons
Join Date: Nov 2020
Posts: 8
Thanks! That looks like it's about updating the pin appearance. What I'm after is a better way to frequently update the location of the pin. Anyhow I think I'll just release the addon as it does work as is.
  Reply With Quote
07/26/22, 06:58 PM   #5
DakJaniels
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 27
Originally Posted by trollusk View Post
Thanks! That looks like it's about updating the pin appearance. What I'm after is a better way to frequently update the location of the pin. Anyhow I think I'll just release the addon as it does work as is.
Might as well release it and use the public as beta testers, haha. That seems to be the way of most game studios now.
  Reply With Quote
07/27/22, 01:25 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Our users deserve more
  Reply With Quote
07/27/22, 05:36 AM   #7
DakJaniels
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 27
Originally Posted by Baertram View Post
Our users deserve more
Our users need the “Intro to computer Science 101” course 😅
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Best way to update compass pin for a moving object?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off