there has any tricks to improve FPS for old PC?
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: there has any tricks to improve FPS for old PC?
vsync is on by default in LÖVE. When I turned vsync off in your game, I got ~560fps without the background, and ~550fps with the background.
Re: there has any tricks to improve FPS for old PC?
i was change to 0.9 but not show diference.tentus wrote: That code is fine, though I have to ask, why 1 * 0.9? Why not just 0.9?
i just do a little test for see what wrong with code.crow wrote:I am confused in what your doing as I get 62 with and without background
there is not wrong from code, but why my result is so much slow with background. this is make no sense isn't it?
if the problem is from hardware why without background is 110 FPS.
i new in loveslime wrote:vsync is on by default in LÖVE. When I turned vsync off in your game, I got ~560fps without the background, and ~550fps with the background.
how to change vsync?
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: there has any tricks to improve FPS for old PC?
The code runs at 60 fps in all cases on my sytem.
I've had a look at the code and could not find anything obviously bad.
Are your graphic drivers up to date?
Small things:
You could have this:
I've had a look at the code and could not find anything obviously bad.
Are your graphic drivers up to date?
Small things:
- As others have said, 1*0.9 is often times the same as 0.9; -1*0.9 is -0.9
- Booleans are better than 1's and 0's for conditions.
Code: Select all
on_back=1
...
if on_back==1 then
...
function love.keypressed(k)
if k == "b" then
if on_back==1 then
on_back=0
else
on_back=1
end
end
end
Code: Select all
on_black = true
...
if on_black then
...
function love.keypressed(k)
if k == "b" then
on_back= not on_black
end
end
When I write def I mean function.
Re: there has any tricks to improve FPS for old PC?
hmm.. i'm use openchrome driver for my via chrome VGA.kikito wrote:The code runs at 60 fps in all cases on my sytem.
I've had a look at the code and could not find anything obviously bad.
Are your graphic drivers up to date?
they say via chrome has lot of problem with driver in linux,
but why if i used sdl framework run smoothly with my vga driver.
is there any issues bug or problem if love2D with via chrome driver?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: there has any tricks to improve FPS for old PC?
But love doesn't use SDL for drawing, it uses OpenGL.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: there has any tricks to improve FPS for old PC?
In conf.lua:baby_nux wrote:i new in love
how to change vsync?
Code: Select all
function love.conf(t)
t.vsync = false
end
Help us help you: attach a .love.
Re: there has any tricks to improve FPS for old PC?
problem solved!!!
since via chrome driver at ubuntu has problem about driver compatibility then i do some tweak on driver.
the problem is from opengl driver, its doesn't work well. ( thx to bartbes for remain me )
so i download "via_chrome9_dri.so" from official site and replace the old one.
and then, love2D work perfectly.
test result:
165 FPS with background
423 FPS without background
but why so much deference, I am soo confuse ..
anyway, but more better now
maybe i do not need FPS trick anymore LOL...
thx all
since via chrome driver at ubuntu has problem about driver compatibility then i do some tweak on driver.
the problem is from opengl driver, its doesn't work well. ( thx to bartbes for remain me )
so i download "via_chrome9_dri.so" from official site and replace the old one.
and then, love2D work perfectly.
test result:
165 FPS with background
423 FPS without background
but why so much deference, I am soo confuse ..
anyway, but more better now
maybe i do not need FPS trick anymore LOL...
thx all
Re: there has any tricks to improve FPS for old PC?
I just test this on my laptop I getting 65 on both also strange my laptop is older and is using a crap gfx and 1.7 amd dual core where my
pc gets 61 and thats a core 2 duo 2.4 with a 512 Radian HD 4450 hmm why are my Frame Rate so low ?
pc gets 61 and thats a core 2 duo 2.4 with a 512 Radian HD 4450 hmm why are my Frame Rate so low ?
Sir Kittenface
Möko IDE Codename (Erös) Returns Soon
I am dyslexic so if any of my replys confusing please just ask me to reword it as this will make things a lot easier for all parties lol.
Möko IDE Codename (Erös) Returns Soon
I am dyslexic so if any of my replys confusing please just ask me to reword it as this will make things a lot easier for all parties lol.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: there has any tricks to improve FPS for old PC?
Ok, first off, use punctuation, you are very difficult to understand most of the time, since you ignore commas and periods.crow wrote:I just test this on my laptop I getting 65 on both also strange my laptop is older and is using a crap gfx and 1.7 amd dual core where my
pc gets 61 and thats a core 2 duo 2.4 with a 512 Radian HD 4450 hmm why are my Frame Rate so low ?
Now that I've got that off my chest, it's probably a video card cap: many systems will refuse to go much above 60 fps, to avoid overheating. My Asus M51 does that, which is kinda irritating but makes sense (makes it much harder to optimize code ).
Kurosuke needs beta testers
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: there has any tricks to improve FPS for old PC?
Argh, and my system refuses to do vsync. So everyone who decides to not use dt and assume max FPS makes a game I can't play.tentus wrote:Now that I've got that off my chest, it's probably a video card cap: many systems will refuse to go much above 60 fps, to avoid overheating. My Asus M51 does that, which is kinda irritating but makes sense (makes it much harder to optimize code ).
Who is online
Users browsing this forum: No registered users and 4 guests