Page 1 of 4

there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 4:18 am
by baby_nux
i use linux ubuntu 10.10 with:
pentium 4 3 Ghz
onboard via chrome VGA 128 mb.
ram DDR2 1 Gb.

i was use sdl framework before and has good FPS from it ( to make sure vga driver work well ).
but when i use love2d, FPS drop ( even with simple background image and a moving object )

there is any tricks to improve FPS with love2d engine? any idea?

thx
( sry for my english, i'm from Indonesia )

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 4:57 am
by crow
That spec you have there is not old, look at mean NEW laptops and netbooks you get about that kind of spec some newer laptops and some cheaper PC's so don't put your rig down lol.

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 5:40 am
by baby_nux
crow wrote:That space you have there is not old, look at mean NEW laptops and netbooks you get about that kind of space some newer laptops and some cheaper PC's so don't put your rig down lol.
:awesome: sry for a little wrong about subject title.
yes,my pc not very old, but my hardware look like old with FPS droped like that :death:
so, i said old maybe anyone have similiar problem with old hardware and have idea to improve them.

any clue?

( very poor english, sry for thats ^^ )

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 6:02 am
by crow
I don't see the problem with your hardware you not really posted a full hardware list but your PC might be old in age but its not really that old in spec it really still fits the bull for these kind of us, I really don't know much about the FPS's for love but if another system works ok for you and love does not maybe its just something coded different.

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 6:28 am
by BlackBulletIV
The framerate drop could be partly caused by the fact that when you were using SDL, you didn't have to manage a scripting language (Lua) which isn't an incredibly fast task, but Love does.

Before we can really give any performance tips that are relavent, could you post the code you're using?

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 6:41 am
by slime
There are always tricks to improve your FPS, depending on what you're doing. The tradeoff of using pure Lua to make games is that it's not as fast as the lower-level alternatives, but some simple changes to code can sometimes result in dramatic performance increases. Compiling LÖVE with LuaJIT can also help a lot, if you're doing a lot of pure-lua calculations/iterations. :)

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 6:54 am
by Jasoco
If you ask me, the word Pentium is the problem these days. It's all about the Core2Duo's or the i3, i5 and i7's now. They're so much faster.

3GHz Pentium ~= 2GHz Core2Duo interestingly (And they laughed at the Megahertz Myth back in the day. Now who's laughing!? It was all true! True, I tells ya! The Megahertz Myth was real!!! *maniacal Spoony-as-Dr.-Insano-style laughter*)

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 7:55 am
by baby_nux
this is simple sample test code.
only show background image and fly/moving object

this is my result
with backgorund: 16 FPS ( so slow )
without background: 110 FPS

why is FPS drop so much like thats?
any wrong from the code, or from my hardware?
there are any triks for this?

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 8:07 am
by tentus
baby_nux wrote:this is sample simple test code.
only show background image and fly/moving object

this is my result
with backgorund: 16 FPS ( so slow )
without background: 110 FPS

why is FPS drop so much like thats?
any wrong from the code, or from my hardware?
there are any triks for this?
That code is fine, though I have to ask, why 1 * 0.9? Why not just 0.9?

Re: there has any tricks to improve FPS for old PC?

Posted: Mon Mar 07, 2011 8:16 am
by crow
I am confused in what your doing as I get 62 with and without background