Skip to content
Discussion options

You must be logged in to vote

In that case, have you tried using listeners for events that are dispatched from the mainLoop? Specifically, these events:

const char* Director::EVENT_AFTER_DRAW            = "director_after_draw";
const char* Director::EVENT_AFTER_VISIT           = "director_after_visit";
const char* Director::EVENT_BEFORE_UPDATE         = "director_before_update";
const char* Director::EVENT_AFTER_UPDATE          = "director_after_update";
const char* Director::EVENT_BEFORE_DRAW           = "director_before_draw";

A combination of them should provide the timings you are after. Refer to the mainLoop implementation to see when each event is dispatched.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@j-jorge
Comment options

@rh101
Comment options

rh101 Apr 19, 2025
Collaborator

@aismann
Comment options

aismann Apr 22, 2025
Collaborator

@j-jorge
Comment options

@aismann
Comment options

aismann Apr 23, 2025
Collaborator

Answer selected by j-jorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2495 on April 17, 2025 04:40.