there has any tricks to improve FPS for old PC?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
baby_nux
Prole
Posts: 25
Joined: Fri Mar 04, 2011 3:21 pm

there has any tricks to improve FPS for old PC?

Post 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 )
User avatar
crow
Party member
Posts: 186
Joined: Thu Feb 24, 2011 11:47 pm
Location: UK
Contact:

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

Post 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.
Last edited by crow on Mon Mar 07, 2011 5:59 am, edited 1 time in total.
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.
User avatar
baby_nux
Prole
Posts: 25
Joined: Fri Mar 04, 2011 3:21 pm

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

Post 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 ^^ )
User avatar
crow
Party member
Posts: 186
Joined: Thu Feb 24, 2011 11:47 pm
Location: UK
Contact:

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

Post 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.
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.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

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

Post 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?
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post 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. :)
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

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

Post 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*)
User avatar
baby_nux
Prole
Posts: 25
Joined: Fri Mar 04, 2011 3:21 pm

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

Post 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?
Attachments
game.love
sample code
(13.66 KiB) Downloaded 290 times
Last edited by baby_nux on Mon Mar 07, 2011 8:07 am, edited 1 time in total.
User avatar
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?

Post 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?
Kurosuke needs beta testers
User avatar
crow
Party member
Posts: 186
Joined: Thu Feb 24, 2011 11:47 pm
Location: UK
Contact:

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

Post by crow »

I am confused in what your doing as I get 62 with and without background
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests