Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: curb47 on October 21, 2020, 04:47:30 AM

Title: Fixed Update, Late Update or V-sync [SOLVED]
Post by: curb47 on October 21, 2020, 04:47:30 AM
Hi ya,

I've had an ongoing issue with my background objects (flat Quads with a png on the material) stuttering really badly when the camera is moving up and down. I've tried various combinations of the available Update options on the actions, and applying a Fixed Update component to the objects, but things only get worse, never better.

I'm thinking it might be a deeper V-sync issue, not an Update issue. Is there any way to explore V-sync options?

Here's the FSM for the background layer, it's very simple:

(https://i.postimg.cc/Xq68pN3B/Screen-Shot-2020-10-21-at-09-36-17.png)
Title: Re: Fixed Update, Late Update or V-sync
Post by: wetcircuit on October 21, 2020, 10:59:26 AM
Is the switch from worldspace to self intentional?
Title: Re: Fixed Update, Late Update or V-sync
Post by: curb47 on October 21, 2020, 11:56:15 AM
No, that's an accident. I fixed that now.

I have kinda found a solution; rather than getting the position of the main camera for the Y variable, I've got the position of the player spaceship instead.

This makes sense as the position of the main camera is actually driven by the position of the player ship in the first place, and the ship is rigidbody/collider using forces etc for movement, so it'll be a physics engine / fixed update thing.

I figured if getting the position of the ship returns the same value then that would work, and it seems to. It looks a million time better anyway.

I guess I should mark it as solved.

Thanks,

J.