Hi! I just started with LÖVE yesterday and I löve it so far! However, there is one thing I find strange. On both my desktop computer and my netbook, both running Ubuntu 11.04, LÖVE games seem a bit laggy when you start them in a windowed mode... Until you run them in full screen, then suddenly everything starts running much smoother, and the strange thing is that even if I go back to windowed, it will be running smoothly as long as it has been in full screen at least once. Is this common and/or a known issue?
I use love.timer.getFPS to track FPS but it shows 61 FPS both when it lags and when it doesn't. I find this very strange.
LÖVE was installed simply with sudo apt-get install love, and this "bug" applies to all löve games I've tried.
Not that it's much of an issue, when I make a "serious" I'll just have it start in full screen (which makes sense anyway) and nobody will notice... But it's still wierd.
If you don't want to sit down and write an example of your own to test you can use http://dl.dropbox.com/u/7572962/najs.love in which 'w' and 'a' switches between window and full screen.
Strange performance issue
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Strange performance issue
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Strange performance issue
I haven't been able to reproduce this, but what happens if you remove the call to love.graphics.setMode?
Help us help you: attach a .love.
Re: Strange performance issue
Oh, that completely removed the issue! But that is only a partial solution as I don't get to choose the resolution... Nonetheless, good to know.Robin wrote:I haven't been able to reproduce this, but what happens if you remove the call to love.graphics.setMode?
And also, what's the difference between calling setMode in the beginning of the program and later?
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: Strange performance issue
If you use Config Files you can specify the size of the initial window, which is preferred, as it doesn't create 2 windows in rapid succession.
Re: Strange performance issue
Its a vsync problem on ati cards in window mode,if framerate is not fixed it doesn't happen
You can play all games on fullscreen by adding a conf file to the game source and configuring with the ati catalyst control center so as to not stretch the screen when the ratio is not the same as screen.
I haven't manged to resolve the issue in any other way
You can play all games on fullscreen by adding a conf file to the game source and configuring with the ati catalyst control center so as to not stretch the screen when the ratio is not the same as screen.
I haven't manged to resolve the issue in any other way
Who is online
Users browsing this forum: Google [Bot] and 211 guests