Lag adjustment and authorative model for bullet hell (Like Geometry Wars)

I am making "bullet hell " game like Neon Wars (2d, physics based controls, lots of bullets). How should one approach the authorative model and lag compensation.

I initiallythought server authorative. It works well for movement as you apply forces so it’s an inbuilt inertia.

However don’t the user expect shots to be fired as soon as a weapon is fired instead of waiting for a roundtrip?

How should I then sync the bullets. I guess syncing their positions is impossible due to the high amount ?
Do I need someone to lag compensate so it looks the same in each client?

The game is both PvP and PvE if that matters and using Mirror.

Anyone have ideas?

Prediction, i think so

1 Like

You can check out my blog as it might be useful: Creating an Isometric 2D RPG/MMO (Ongoing Series)

For my game I move the character right away in unity and the reconcile with the server when the server position get returned to the client. The key here is to make sure the client and server update on the same tick so the the movements are exact which will help prevent rubber banding/popping client side. Also make sure your physics both client/server is exactly the same or you are going to end up with some drifting.

For my project I’m doing a console authoritative server but the same principles should apply.