jlnunez89 / fibula-mmo

An open source server written in C# for the other-leg-bone-name game (which must not be named).
MIT License
28 stars 7 forks source link

Make monster spawns only when the sector gets loaded. #43

Closed jlnunez89 closed 4 years ago

jlnunez89 commented 4 years ago

Problem:

Currently, the game loads all monster spawns on game load. This effectively loads most of the map.

Solution:

This PR makes it so that monsters are only spawned when a sector is loaded, effectively keeping the load time and memory usage really low.