Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Critical] Seperate level scenes from each other and make world states instanced #61

Open
MaxIsJoe opened this issue Jul 2, 2022 · 0 comments
Labels
IMPORTANT/CRITLCAL All work must be paused on everything until this is resolved. Improvment networking Scenes

Comments

@MaxIsJoe
Copy link
Owner

MaxIsJoe commented Jul 2, 2022

Currently all levels are mashed together in one giant world node that gets loaded on start, this causes a lot of pathfinding and memory issues and will cause the world state packets to be large for no reason overtime when we add more things into the game.

Seperating them and adding a proper scene load system would fix the issue we have currently with the game hanging up on startup + mobs having trouble pathfinding.
This will also allow us to stop sending data to players who are not currently inside that scene since the client only has to load the scene relavent to it and will also stop the server from processing areas when there's no players on them.

Scenes should be layered like this on the server:

Global Nodes
-
Ui
-
Worlds
-- DiagonAlly
--- Players
-- Village
--- Players
-- Hogwarts
--- Players

while currently its done like this:

Global Nodes
-- Players
World
-
@MaxIsJoe MaxIsJoe added Improvment Scenes networking IMPORTANT/CRITLCAL All work must be paused on everything until this is resolved. labels Jul 2, 2022
@MaxIsJoe MaxIsJoe pinned this issue Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IMPORTANT/CRITLCAL All work must be paused on everything until this is resolved. Improvment networking Scenes
Projects
None yet
Development

No branches or pull requests

1 participant