Skip to content

[GearSwap] Use coroutine scheduler to do delayed casts - #2587

Merged
lili-ffxi merged 1 commit into
Windower:devfrom
Zirk40:zirk-schedule-cast-delays
Nov 21, 2026
Merged

lili-ffxi merged 1 commit into
Windower:devfrom
Zirk40:zirk-schedule-cast-delays

Conversation

@Zirk40

@Zirk40 Zirk40 commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

GearSwap currently uses a bit of a hacky method to do delayed casts that relies on the console wait command, which also introduces an additional code path with the pretarget_delayed_cast and precast_delayed_cast functions. This commit switches to using the more proper, robust method of the coroutine scheduler which also ensures all casts, delayed or not, take the identical code path.

GearSwap currently uses a bit of a hacky method to do delayed casts that
relies on the console wait command, which also introduces an additional code
path with the pretarget_delayed_cast and precast_delayed_cast functions. This
commit switches to using the more proper, robust method of the coroutine
scheduler which also ensures all casts, delayed or not, take the identical
code path.
@lili-ffxi

Copy link
Copy Markdown
Contributor

@z16 I think you were poking at the scheduler right? Are you happy with its current state?

@z16

z16 commented Oct 26, 2026

Copy link
Copy Markdown
Member

Yes. There are currently no known scheduler issues. Maybe this will help us discover some.

@lili-ffxi

Copy link
Copy Markdown
Contributor

Yes. There are currently no known scheduler issues. Maybe this will help us discover some.

The dr. House method of finding bugs

@lili-ffxi
lili-ffxi merged commit cb66dcd into Windower:dev Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants