Skip to content

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

@MaxIsJoe

Description

@MaxIsJoe

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
-

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions