Hi all. I have a bug, when starting the game, how a Client, with a Bad Network Emulation (Minimum Latency 300), the first frames appear under the map in zero position. After a second, the controller appears and he takes possession of the character, after which the camera moves to the pawn. How I can fix it?
If the server is telling the client to look at something when they connect, you should tell your client to look at the same thing when the application is launched, regardless of their latency. There can always be a delay between the server and the client, so you shouldn’t rely on the server to tell the client where to look after the launch.
The server should be the ultimate authority, of course, but the client should know generally where to look to prevent glitches like the one you’re having.
Please tell me if you need me to explain more in detail, I know it might be a little confusing.
You’re right, but I don’t know how to do it. Because at this point there is no player controller or pawn yet. The first frame is rendered on the first tick of the engine, and at this point there is nothing but the game instance and the game mode. If you can suggest a simple way out of this situation I would be very grateful.
One way of solving this is to create an overlay that will simply say “loading” and remove it once the client is set up correctly. There could be a way to fix your problem directly, but it’s fairly more complex, so I would recommend you try this path first and see if it works for your game.