Why does my multiplayer game lag on low-end laptops?

0
4
Asked By GameDevNinja92 On

I'm developing a multiplayer game using Websocket, thinking it would significantly reduce latency like some other games do. However, I've noticed that it runs poorly on low-end laptops, making it almost unplayable. While games like Agar.io and Diep.io seem to work fine on these devices, I'm wondering what I can do to improve performance. My game, which uses Phaser 3, involves physics calculations and has a different structure than those simpler games. I'm curious how I could achieve similar performance levels. I know it's not a multiplayer issue since it runs fine on better hardware. Any tips? Also, just to clarify, I'm currently using bare Websockets, not Socket.io.

1 Answer

Answered By TechieTom123 On

It doesn't seem like the issue is with the Websocket connection unless you're sending too much unnecessary data. If you’re really trying to run on low-end hardware, you’ll want to check your game's code. Can you let us know what kind of specs you're targeting for these devices? Using bare websockets is a good move, as they reduce some overhead compared to Socket.io. I'd be happy to help more once I know the hardware specifics you're aiming for!

CoderGuy44 -

I get what you mean. My game also struggled on older machines before optimizing. Have you thought about simplifying your game’s logic a bit? Sometimes less is more!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.