Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update render functions called twice per tick #3127

Open
ykeuter opened this issue Nov 4, 2020 · 3 comments
Open

Update render functions called twice per tick #3127

ykeuter opened this issue Nov 4, 2020 · 3 comments

Comments

@ykeuter
Copy link
Contributor

ykeuter commented Nov 4, 2020

updateRenderedState and updateRendering are both called twice per tick, in:


and

Is this by design?

Note I am working in Unity, but a quick look seems to confirm the same holds for the Unreal implementation.

@jonyMarino
Copy link
Collaborator

Hi @ykeuter! Are you sure that the method is called for the same object twice?

@ykeuter
Copy link
Contributor Author

ykeuter commented Nov 13, 2020

Hi @jonyMarino ! Yes, in the Unity version I stepped through a "tick" in the debugger and can confirm these render methods are called twice: first in SimModeWorldBase::Tick, which afterwards calls SimModeBase::Tick, which calls PawnSimApi::pawnTick, which calls the same render methods again.

I am less familiar with the Unreal implementation code so cannot confirm a similar call stack there at the moment.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

@stale stale bot added the stale label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants