playMaker

Author Topic: Fixed Update, Late Update or V-sync [SOLVED]  (Read 179 times)

curb47

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Fixed Update, Late Update or V-sync [SOLVED]
« 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:

« Last Edit: October 21, 2020, 11:56:31 AM by curb47 »

wetcircuit

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • wetcircuit.com
Re: Fixed Update, Late Update or V-sync
« Reply #1 on: October 21, 2020, 10:59:26 AM »
Is the switch from worldspace to self intentional?

curb47

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: Fixed Update, Late Update or V-sync
« Reply #2 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.