Hello Guest

Author Topic: Is the late execution of tk2dUIManager necessary?  (Read 3767 times)

JJC1138

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Is the late execution of tk2dUIManager necessary?
« on: October 01, 2013, 07:17:36 pm »
Hi there. I'm trying out using tk2dUIItem for an on-screen gameplay control where latency is important. I notice that tk2dUIManager has a script execution order of 100 which has the effect that it runs after my gameplay code and so the gameplay code is using the last frame's input. I tried setting tk2dUIManager's order to -100 instead, and that seems to work and removes the one-frame latency, but is that supported, or might it break something else?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is the late execution of tk2dUIManager necessary?
« Reply #1 on: October 01, 2013, 11:47:43 pm »
No, I don't think there'll be any issues in doing that.

JJC1138

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Is the late execution of tk2dUIManager necessary?
« Reply #2 on: October 02, 2013, 12:02:26 am »
That's great. Thanks very much.