OnPhotonSerializeView / How much is too much?

Options
Hi!

im currently sending:
5xVector3
3Xint
3xfloat
in every OnPhotonSerializeView update.

is that too much data? should i clamp those 1.111111 vectors to 1.1?

Thanks!

Comments

  • Tobias
    Options
    I think it should be ok. It depends a bit on how often you send this and for how many active GameObjects.

    It doesn't help to clamp the vectors in this case. They still contain floats and those always need the same number of bytes to be sent.
    You should try the setup on the target device and unless it's not working, consider it OK. I'm sorry but I can't provide hard limits. It depends on so many factors...
  • DRRosen3
    Options
    I don't like necro'ing old threads/discussions, but I know sometimes making a repeat is actually worse. With that said I have a similar question about how much is too much to serialize. I'm going to be sending much more than just 5 Vector3, 3 int, and 3 float. I'd have somewhere in the ball-park of 1 Vector 3, 40 int, 10 float, and 30 bool. Why so many you ask... Player stats (HP, mana, debuffs, buffs, etc.) My question is the same, is this too much?
  • vadim
    Options
    Does it cause any problems? If yes, I would say it's too much and requires optimization. If no, leave it as is.