0 votes

So I am trying to make a dungeon crawler type of game that has a large amount of item. The only way I can make weapons able to be picked up is if I already have a preload of that scene. I was wondering if it would be a bad idea to preload every weapon in the game with the player.

Godot version 3.2.3
in Engine by (18 points)

1 Answer

+4 votes

Listen, preload puts it into ram but you have to assume the player has 4gig, that's a LOT. 8 is the norm these days. Doing the heavy lifting at startup means no glacial memory fetches when the game is running and inevitable stalls.

The rule of thumb in optimisation is this: if it's not a problem yet then it's not a problem so forget it. Unless you have some crazy requirement that you know will grind everything to a halt, just ignore it and if it becomes a problem, then deal with it, do load threading or whatever.

Remember, your productivity is more valuable than your machine's. If dev takes so long that you never make the game then you don't have a optimisation issue; because you have nothing.

by (2,154 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.