- Home /
Photon Unity Network - Refresh/Tickrate
Hi everyone, I've recently Started using unity a few months ago, and it is a really great tool for people with backrounds in coding (like me). Anyway, I have installed PUN and a multiplayer starter kit to help teach me about multiplayer with unity.
I've noticed some considerable lag in player position (yes I have looked into network smoothing and that is already implemented). I was wondering if there is a way to set the tickrate or refresh rate of PUN. I have looked all over and cannot find a single thread or post on this topic. Does PUN have a set, unchangeable refresh rate? If not how would I change the refresh/tick rate that the server and client communicate with.
Am I not understanding something fundemental on how PUN works?
Thanks for your responses.
Answer by tanoshimi · Jun 01, 2015 at 06:05 AM
I don't use PUN, but the built-in Network class has a sendRate
property - it sounds like you're looking for the PUN equivalent : http://docs.unity3d.com/ScriptReference/Network-sendRate.html
(Doesn't directly answer the question, I know, but at least you now know the term to search for).
Thanks, I will look into that and see if changing the unity network refresh rate effects Photon.
Answer by starikcetin · Jun 01, 2015 at 05:19 AM
That's not a problem with PUN, actually if you increase the refresh rate it will even become more laggy. You need to use methods like "lerp'ing" and "movement estimation" to make them look more smooth.
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Turn based multiplayer problem 2 Answers
Photon Cloud, Multiplayer Damage script 0 Answers
Photon: Storing map data for persistence - what's the best way do to this? 0 Answers