Documentation discuss about love.load
Posted: Mon Apr 04, 2011 8:57 pm
Hello
The wiki said ( http://love2d.org/wiki/Tutorial:Callback_Functions )
I suppose the reload feature has disappeared in 0.7.1, no problem.
But I don't anderstand how you can "saving a lot of system resources".
If I wrote a main.lua like :
or
What the resource differences ?
Is it really "a lot" ?
EDIT: subject edited
The wiki said ( http://love2d.org/wiki/Tutorial:Callback_Functions )
I remember a way to pause/resume and reload the game in LOVE v0.5.0.This function gets called only once, when the game is started, and is usually where you would load resources, initialize variables and set specific settings. All those things can be done anywhere else as well, but doing them here means that they are done once only, saving a lot of system resources.
I suppose the reload feature has disappeared in 0.7.1, no problem.
But I don't anderstand how you can "saving a lot of system resources".
If I wrote a main.lua like :
Code: Select all
myvar = "test"
Code: Select all
function love.load()
myvar = "test"
end
Is it really "a lot" ?
EDIT: subject edited