ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Best way to update compass pin for a moving object? (https://www.esoui.com/forums/showthread.php?t=10286)

trollusk 07/25/22 04:21 PM

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?

Sharlikran 07/25/22 06:07 PM

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.

Baertram 07/26/22 02:26 AM

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

trollusk 07/26/22 04:51 PM

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.

DakJaniels 07/26/22 06:58 PM

Quote:

Originally Posted by trollusk (Post 46419)
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.

Baertram 07/27/22 01:25 AM

Our users deserve more :p

DakJaniels 07/27/22 05:36 AM

Quote:

Originally Posted by Baertram (Post 46421)
Our users deserve more :p

Our users need the “Intro to computer Science 101” course 😅


All times are GMT -6. The time now is 03:02 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI