nandobtz

Why is the client GPU affecting the Player Movement Speed globally?

Recommended Posts

I'm aware that the client's computer GPU might affect the game's performance (smoothness and freezing). But the game I'm creating now is being affected differently.
The client's GPU is literally affecting his player movement speed globally (even on the other player's views, not only locally for him).

If you check other .io games like agar.io and diep.io, even with a slow computer, you will notice that the player movement speed is is the same (based on the same player level). It skips a few frames and it isn't smooth at all. But the movement speed is the same.

Every player on my game needs to have the same movement speed (that's one of the most important features of my game).

I've also noticed that if I'm using the maximized window, the game slows down. But if I use like half browser screen, it comes back to being fast again:
https://gyazo.com/59b72ae5d9e2d3e9611a41e9ac8a3f39

It wasn't supposed to happen.
If you need further information from me, please let me know.

Please help. Thanks in advance.

 

Share this post


Link to post
Share on other sites

it would be very helpful if you show us your player movement code and tell if it's multiplayer game (you use networking).
my first guess for singleplayer game is that you do not move them by speed multiplied by delta time, but just by speed. maybe you have set fixed time step but that stops working well if frame takes longer to process than fixed time step gives it available time.

Share this post


Link to post
Share on other sites

Yes, it is a multiplayer game, kind of like agario and diepio. You can check it at http://flagz.io (you won't see any players there because I haven't advertised it yet. Still in beta testing)

If you want to check the multiplayer factor, I'd suggest you to open the game in 2 tabs or 2 different browsers.

If you have a pretty good PC, you won't see any different in the move speed. But you can try to open the game in many tabs until your PC slows down. Then you will notice that move speed difference.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.