Hello, I recently started programming with Lua and decided that game programming would help me learn the language better, enter LOVE. I really like LOVE because it is so easy to use, but when I run anything it takes upwards of 20+ seconds to start, making progress extremely slow. Now it only takes a long time to start when I run code with it, by itself Love starts instantly. I'm Sure this is a case of user error or improper configuration, but I cant seem to figure it out.
This is just a simple test have been playing with in love. The message moves up and down and changes.
Greet = "Hello World"
msgy = 300
function move()
if love.keyboard.isDown("e") then
msgy = msgy-1
end
if love.keyboard.isDown("d") then
msgy = msgy+1
end
end
function changemsg()
if love.keyboard.isDown("w") then
Greet = "Goodbye!"
end
end
function love.update()
move()
changemsg()
end
function love.draw()
love.graphics.print(Greet, 400, msgy)
end
Last edited by Slayer on Wed Jan 04, 2017 9:54 pm, edited 1 time in total.
It's a known issue - some configuration of drivers causes LÖVE to take very long to start, because it tries to create a window with different graphics modes until it finds one that works. It doesn't take more than a split second on a normal system, but some very specific configurations cause such iterative search to take very long time.
Try updating your drivers and see if it works.
Also, the nogame screen does not uses some modules. Try loading a blank file, try loading files with different modules disabled in the config file.
Last edited by raidho36 on Tue Jan 03, 2017 8:19 pm, edited 1 time in total.
raidho36 wrote:It's a known issue - some configuration of drivers causes LÖVE to take very long to start, because it tries to create a window with different graphics modes until it finds one that works. It doesn't take more than a split second on a normal system, but some very specific configurations cause such iterative search to take very long time.
Thanks for the reply.
Is there anyway to know which graphics mode it finally uses and force it to only use that one?
You shouldn't do that because what works on your machine may not work on others'. And either way you're not really in control of it, because by "mode" I mean graphics driver system flags, they're set before window is created and as far as I'm aware you can't enforce a specific set of flags.
Give it a while and one of the devs is sure to come over and give a more detailed assistance.
raidho36 wrote:It's a known issue - some configuration of drivers causes LÖVE to take very long to start, because it tries to create a window with different graphics modes until it finds one that works. It doesn't take more than a split second on a normal system, but some very specific configurations cause such iterative search to take very long time.
This might be the issue, but it has not been confirmed. The fact that the no-game screen starts instantly actually makes me suspect it's not related to graphics or the window at all.
Slayer wrote:This is just a simple test have been playing with in love.
Can you try disabling the audio module (t.modules.audio = false) in [wiki]conf.lua[/wiki]?
@slime I tried disabling audio but it didn't seem to help. Also, I don't know if it helps, but I forgot to mention once the game window starts it works for about 1-2 seconds then hangs and is unresponsive for another 10 seconds. After that it works fine though.
@pgimeno I tried disabling the shader cache on my graphics card, but it didn't help unfortunately. I may try the older version and see if that helps.
I'm going to try updating my graphics card driver and see if that helps. If there's no update I will reinstall it.