Skip to content

Is there any way to parse to a specific tick as fast as ParseToEnd()? #345

Answered by markus-wa
srjnm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @srjnm

Great question!

Basically I would never recommend using ParseNextFrame().

Instead you should

  • A: use RegisterEventHandler() and UnregisterEventHandler()
  • or B: handle events conditionally in your code based on if you are in the right tick

also, r.GameState().IngameTick() < endTick may not work, as the last tick from the header is often not correct

hope that makes sense

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@markus-wa
Comment options

Answer selected by srjnm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants