HeladoDeBrownie / Nexus

creative sandbox game in early development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

message queue processing code should not perform local actions

HeladoDeBrownie opened this issue · comments

for the host player, the message queue processing code is what updates the local scene based on the message that was received. this is a problem because it mixes the concerns of dispatching messages to all clients and handling messages for our own "client" (the local player on the host machine). this makes refactoring more difficult than necessary. instead, there should be a separate queue for updates that need to be performed locally, much as there is one for each connected client

does this imply there should be two scenes on the host after all? one visible one and one "authoritative" one? that doesn't seem right