Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Lag When Testing, Empty Scene Only 20 tracked items.

$
0
0
Hello, I am new to PUN and have been going through the tutorials to get a basic idea of how to set things up for multiplayer.

I have built an extremely simplified scene as a test project. The program automatically attempts to connect to a room, once in room if the user hits the space bar, 10 boxes are randomly instantiated and given rotations and movement. The color of the boxes is based on the number of players. This all works as intended.

However, when I connect the second client and fire the command, the boxes instantiated are of a different color (as expected) but they do not show up in the view of the first client. Also every tracked object begins to lag. There are only 20 objects in scene, and I am only tracking the transforms of these objects.

I am using PhotonNetwork.Instantiate to create my objects and my objects have PhotonView script attached to them with Observed Components set to Transform.

Any advice would be appreciated. Thank you.

Viewing all articles
Browse latest Browse all 15755

Trending Articles