Closed Christopher-Steel closed 9 years ago
It is because panels only have a "hide" status and the panel being hidden doesn't mean it is not updated. I will make an attribute to disable panels.
Thanks :)
Forget what i've said, if panels are hidden, they wont be updated. The cause is in the World's constructor you create the first chunks
On launch, the client randomly prints "pos not found" on stdout. This does not occur on every launch. I located where the message is printed from: the Chunk class.
The fact that this message gets printed on launch means that chunks are generated on launch and therefore the whole game is loaded while we are still in the main menu. For now this doesn't pose any real problems except more load time before actually launching the client, but when we'll have sounds and AI, the game will be launched with the menu and you'll hear the game sounds and the AI will be working.
Also, we can't load the game before knowing which world the player wants to load and which character so it's important to only load the game when the player asks us to.