3 ms·
Somewhat orthogonal to what Folia is doing, and already explored by the community. Folia's main trick is to dynamically split the "main game tick loop", where
by tehbeard 3y ago
Somewhat orthogonal to what Folia is doing, and already explored by the community.
Folia's main trick is to dynamically split the "main game tick loop", where logic and actions are processed into several threads based on location.
Such that processing for say a mob farm in the South of the map does not impede on processing for a hopper based storage system in the North West etc.
This doesn't solve the everyone's at one place problem (or "Jita problem", in EvE online parlance) but does solve some issues with populated servers where player density isn't extreme.
- birracerveza 3y agoIs there a solution for the Jita problem that isn't just beefing up the server?
- lordnacho 3y agoFrom reading the comments here, it would appear the problem is sending out position updates to all the clients. If each client is on a TCP connection, this will end up being a problem as each movement causes everyone else within range to receive a message. If everyone is moving, that's a heck of a lot of messages everyone is getting. Not only that, everyone needs a copy of the message in their TCP pipe, one at a time, sent from the server. So it quickly explodes. I guess you can think of it as O(N) clients each causing O(N) messages to go out, so it explodes quadratically. This isn't likely what I'm about to suggest, but you could move to a broadcast type system where you have some sort of UDP broadcast where you simply tell everyone about all the movements, and a alternative negative-ack channel where clients can ask for missed broadcasts. That way only O(N) messages are sent (the magic happens in the network devices). The issue with that is the internet isn't great for packet loss or multicast routing, so if you have O(N) resend requests you're not much better off. If you had all your clients in one datacenter it might work :)
- stevefan1999 3y agoWell...I searched for ZGC on Folia but I found 0 open and closed issues. Maybe someone discussed about this on Discord?