Zoinkwiz / quest-helper

Helps with Quests.
BSD 2-Clause "Simplified" License
236 stars 415 forks source link

fix: speed up sidepanel responsiveness to quest state changes #1858

Closed pajlada closed 1 day ago

pajlada commented 1 day ago

When progressing through a quest, the sidepanel is currently a bit slow at progressing.

This PR tries to avoid this by ensuring the event that triggers sidepanel updates is done at the end of the GameTick event

Before:

https://github.com/user-attachments/assets/f5c77bcc-dbde-475f-a31a-e7880e7650ba

After:

https://github.com/user-attachments/assets/80035f8b-ceb9-45a9-b6dd-c159ee04c9e8

This is probably one of these things that'd be good to get some testing with to ensure it doesn't silently break something