Hey, I just started using Love2d since yesterday. Everything went quite well, but when I run my "hello world" it seems that my system is slowed down a lot. Any ideas?
BTW, I am using Linux Mint 64bit, my system is: i5-2320, 6g ram, ATI 6450.
Thanks!
Slow performance, any ideas?
Re: Slow performance, any ideas?
If you post a .love file we can take a look at it and give you a better idea.
It's easy for new users to misplace one or two bits of code and create a massive unintentional performance drain. Chances are we can help you figure it out.
It's easy for new users to misplace one or two bits of code and create a massive unintentional performance drain. Chances are we can help you figure it out.
Re: Slow performance, any ideas?
The code itself is just the "hello world" example. Nothing special.
But when the window shows up, my system just suddenly become very slow.
Code: Select all
1 function love.draw()
2 love.graphics.print( "hello world!", 400, 400 )
3 end
Re: Slow performance, any ideas?
Your computer is very fast, with a dedicated graphics card to boot. Something must be going horribly wrong with your X11 setup or ATI drivers.
There is an official linux binary driver for ATI video cards called fglrx. You might have better luck with it.
There is an official linux binary driver for ATI video cards called fglrx. You might have better luck with it.
ALL CREATURE WILL DIE AND ALL THE THINGS WILL BE BROKEN. THAT'S THE LAW OF SAMURAI.
Re: Slow performance, any ideas?
This happens on my computer as well. Try disabling vsync. The best way to do this is to include a file called "conf.lua" with the following.
This is common on Linux setups. You can't simply assume that a computer has a good vsync implementation, at least not if it runs Linux.
Code: Select all
function love.conf(t)
t.screen.vsync = false
end
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Slow performance, any ideas?
That is a lie. This is most definitely the driver's fault, and some have been reported to do the same on windows, for instance.T-Bone wrote: This is common on Linux setups. You can't simply assume that a computer has a good vsync implementation, at least not if it runs Linux.
Re: Slow performance, any ideas?
What I said and what you said do not contradict eachother. It is "common" on Linux setups, meaning that I've seen it several times on several computers and drivers. That doesn't mean it's not the driver's fault. Linux isn't excactly known for having great graphics card drivers.bartbes wrote:That is a lie. This is most definitely the driver's fault, and some have been reported to do the same on windows, for instance.T-Bone wrote: This is common on Linux setups. You can't simply assume that a computer has a good vsync implementation, at least not if it runs Linux.
You can't assume that a random computer has working vsync. That is a fact, no matter what the reason is. Most computers may have it, but it's common enough for it to be quite easy to find one without it.
If it can happen on Windows too then it's all the more of a reason not to assume that a random computer has properly working vsync.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Slow performance, any ideas?
And I'm saying it isn't as common as you might think, and disapproving of the implication that it is more common on linux than on other operating systems. (If you claim you didn't mean this, why explicitly mention linux in the first place?)
Re: Slow performance, any ideas?
I said "at least not if it runs Linux". I mention Linux because it is there that I have seen it (several times). I have never heard of it appearing on Windows or any other OS but I guess it can. I never said that it was more common on Linux than on other OSes, but it seems to be based at least on my personal experience.bartbes wrote:And I'm saying it isn't as common as you might think, and disapproving of the implication that it is more common on linux than on other operating systems. (If you claim you didn't mean this, why explicitly mention linux in the first place?)
Perhaps I've formulated myself badly? All I mean to say is that I've seen bad vsync on enough Linux computers to claim that it's common.
EDIT: Perhaps I should have said "it's a common issue on Linux", perhaps I made it sound like it was "normal" in the sense that there's nothing wrong with it?
Last edited by T-Bone on Thu Mar 08, 2012 10:22 am, edited 1 time in total.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: Slow performance, any ideas?
Thanks man, just tried and this time my program runs super smooth!T-Bone wrote:This happens on my computer as well. Try disabling vsync. The best way to do this is to include a file called "conf.lua" with the following.
This is common on Linux setups. You can't simply assume that a computer has a good vsync implementation, at least not if it runs Linux.Code: Select all
function love.conf(t) t.screen.vsync = false end
Who is online
Users browsing this forum: Bing [Bot] and 3 guests