AssignControl starts drawing proxies behind
Options
Latufla
✭
in Photon Bolt
Making FPS Runner game. When AssignControl to all clients proxies start draw behind. Guess due to lags and interpolation.
Understand that it`s technically right but not appropriate for our game. Do I have other options to achieve better rendering for proxies? Is extrapolation appropriate for such a gameplay with left right movements and jumps?
Understand that it`s technically right but not appropriate for our game. Do I have other options to achieve better rendering for proxies? Is extrapolation appropriate for such a gameplay with left right movements and jumps?
0
Comments
-
Better to say starts draw player in real time0
-
I'm not sure what you mean. Is it the entity you are controlling that appears to lag? A project showing the issue would be best.0
-
@stanchion When I AssignControl from server to client it starts to simulate controlled player in present but
shows proxies in the past (interpolation). I wonder what can i do to show their approximate positions in present?0 -
You can turn on extrapolation and it may behave the way you want.0
-
I made simple project to show my problem https://github.com/latufla/PhotonDemoExtrapolate
I only spawn players and use PlayerMotor(PlayerMoveBehaviour is exact copy) from code samples to move them forward. Proxy player is always behind whether interpolate or extrapolate
I see it`s an RTE. I don`t have same RTE in production project. But have same issue0 -
@stanchion I tried to follow tutorial and advanced tutorial code0
-
I tried testing the project but couldn't get players to spawn.0
-
@stanchion for simplicity sake I use Bolt Scenes -> DemoExtrapolate -> Debug Start0
-
Yes I tested that way and couldn't get it to work.0
-
@stanchion Runtime Errors?0
-
I took a look at the code and it doesn't spawn players unless clients connect to host. I would supply instructions with your repro project next time.
You can solve the issue by changing extrapolation from "copy from character controller" to "calculate from position". I would also change command interpolation to 30 on the command.
0 -
@stanchion Thank you, sorry for lack of instructions(
I changed extrapolation and command interpolation. It became better, but proxy is still behind a lot. Pushed to repo0 -
@stanchion Sorry, any doc or article about extrapolation in bolt. What does Max Frames and Error Tolerance mean and how to adjust em?0