2D Toolkit Forum

2D Toolkit => Support => Topic started by: JJC1138 on October 01, 2013, 07:17:36 pm

Title: Is the late execution of tk2dUIManager necessary?
Post by: JJC1138 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?
Title: Re: Is the late execution of tk2dUIManager necessary?
Post by: unikronsoftware on October 01, 2013, 11:47:43 pm
No, I don't think there'll be any issues in doing that.
Title: Re: Is the late execution of tk2dUIManager necessary?
Post by: JJC1138 on October 02, 2013, 12:02:26 am
That's great. Thanks very much.