Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: client-server game wtf bug  (Read 1846 times)

0 Members and 1 Guest are viewing this topic.

legozaur

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
client-server game wtf bug
« on: October 13, 2017, 01:22:57 pm »
hello my friends on SFML.

the problem is this:
Without a sf::RenderWindow the server brakes (delay 5 ~ 50%)
With the sf::RenderWindow it works as it should (delay 0 ~ 3%)

p.s: pictures are attached.

wtf?!  :o

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: client-server game wtf bug
« Reply #1 on: October 13, 2017, 01:28:30 pm »
Use a debugger and if needed Wireshark to track your network data.

And at least make an effort to try an explain your issue a bit more and what steps you've taken to track things down.
Also posting code in image form is not useful, do really expect people to type the code from your images? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

legozaur

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: client-server game wtf bug
« Reply #2 on: October 13, 2017, 01:39:54 pm »
oh, exactly
the characters on the server were terribly slow compared to customers. (pictures 3-4)
when the window was added to the server, the delays disappeared (pictures 1-2)
- translucent - traffic on the server (transferred to the client)
- opaque - the movement predicted by the client (calculation by the client)