Larkinabout / fvtt-token-action-hud-core

Token Action HUD is a repositionable HUD of actions for a selected token.
14 stars 17 forks source link

Delayed token movement on each movement #219

Closed xKillerbees closed 6 months ago

xKillerbees commented 6 months ago

Token Action HUD Pathfinder 2e - 1.5.4 Library - Token Action HUD Core - 1.5.2 Color Picker - 1.3

It looks like on every movement it is updating, building and preparing on each space moved and when there are multuple players doing this at once, everyone complains of lag. When the Pathfinder 2e token action hud module is disabled it goes away.

image

Larkinabout commented 6 months ago

With the Debug option enabled and the browser console cleared, move the token one space then expand the 'Updating HUD' object in the console and post the results here. It should tell you what hook caused it to update.

There is a clause in the Token Action HUD Core's updateToken hook to return if there is either an x or y property to stop it updating for token movement, so my initial suspicion is that something else is triggering another hook.

xKillerbees commented 6 months ago

image

Once I disabled Rideable the issue stopped and I stopped seeing the repeating call in the console from token action hud. In that scene I only had 2 tokens riding and even tried unmounting them and reloading without success. I haven't used the module aside from that yet.

Rideable 2.17.2 routinglib 1.1.0

Larkinabout commented 6 months ago

Thanks, I'll see about adding in an exception for that module.

xKillerbees commented 6 months ago

Any idea on when this exception will be made? Not urgent but curious when I'll be able to use both modules at the same time again.

Larkinabout commented 6 months ago

Fixed in 1.5.3.