playMaker

Author Topic: Late Update Option for Movement (LookAt, iTween, Move)  (Read 6162 times)

jonathangersam

  • Playmaker Newbie
  • *
  • Posts: 11
  • A startup indie hobby developer. Nice too meetcha!
Late Update Option for Movement (LookAt, iTween, Move)
« on: May 14, 2013, 03:35:41 PM »
Hi,
Just a small feature request pls - I'm encountering a lot of stutter for the actions
LookAt, SmoothLookAt, and iTween stuff. Can we pls have a LateUpdate toggle
for these PM actions?


I believe this is because their updates out of sync with the target objects
(i.e.: A camera object is tracking the player; camera LookAt should
always update only after the Player target moves).


As a test, I tried to just code a simple C# script for a call to transform.Lookat().
When it's in my LateUpdate() function, it's buttery smooth.
When it's in m Update() function, it reproduces the lag.


I'm presently running on Unity 4.1.2f1 btw, tho it was also the same in Unity 4.0.


Thanks!
@jonathangersam (twitter)
Platinum Toybox Studios

Getaway Driver School
http://gamejolt.com/games/arcade/getaway-driver-school/13839/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Late Update Option for Movement (LookAt, iTween, Move)
« Reply #1 on: May 14, 2013, 11:45:37 PM »
Hi,

 can you bump this next week if you haven't heard back? I would appreciate, it's on my list, but you know how it goes...

bye,

 Jean

jonathangersam

  • Playmaker Newbie
  • *
  • Posts: 11
  • A startup indie hobby developer. Nice too meetcha!
Re: Late Update Option for Movement (LookAt, iTween, Move)
« Reply #2 on: May 15, 2013, 01:57:55 AM »
Sure, thanks!
@jonathangersam (twitter)
Platinum Toybox Studios

Getaway Driver School
http://gamejolt.com/games/arcade/getaway-driver-school/13839/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Late Update Option for Movement (LookAt, iTween, Move)
« Reply #3 on: May 22, 2013, 05:41:17 AM »
hi,

Wanted to tackle this, but actually, lookat and smoothLookAt already perform during LateUpdate. Can you double check that indeed it's not the target itself that stutter to begin with?

bye,

 Jean

jonathangersam

  • Playmaker Newbie
  • *
  • Posts: 11
  • A startup indie hobby developer. Nice too meetcha!
Re: Late Update Option for Movement (LookAt, iTween, Move)
« Reply #4 on: May 22, 2013, 09:54:23 AM »
Hi,
I just shifted my camera object back to using PM SmoothLookAt after the recent update, and it seems to work smoother now. iTween Rotate Update still lags though, I can post the prototype unity project if it might help,


thanks,
@jonathangersam (twitter)
Platinum Toybox Studios

Getaway Driver School
http://gamejolt.com/games/arcade/getaway-driver-school/13839/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Late Update Option for Movement (LookAt, iTween, Move)
« Reply #5 on: May 23, 2013, 01:13:04 AM »
Hi,

 Ok good that you got it working,

 iTween: yes they will need a treat.

bye,

 Jean