Page 1 of 1

60 frames per second

Posted: Fri Apr 15, 2011 5:19 pm
by Danny
Does any one know how to make a LiveCode program run at 60fps (frames per second)? Is it graphics or code? does it use a ton of cpu power.
Thanks for your input

Danny

Re: 60 frames per second

Posted: Wed Apr 20, 2011 9:19 am
by Mark
Danny,

What kind of frames are you talking about? If you want to make some kind of movie, there's no point in showing more than 32 frames per second, since the human eye won't notice any quality improvement if you add more frames beyond that.

Best,

Mark

Re: 60 frames per second

Posted: Wed Apr 20, 2011 1:33 pm
by Danny
Hi Mark,
No it's more like a game. I have these apples falling down the screen from the top to the bottom. And I'm just missing 30 fps when I test it.

Danny

Re: 60 frames per second

Posted: Wed Apr 20, 2011 1:42 pm
by Mark
Danny,

Please define "frame".

Mark

Re: 60 frames per second

Posted: Wed Apr 20, 2011 5:06 pm
by Danny
I just mean 60 fps to make it look and maybe run smoother. I guess defining it, when an apple drops I want it to run down the screen smoother.

Re: 60 frames per second

Posted: Thu Apr 21, 2011 2:05 pm
by hliljegren
I don't think you will get 60 fps in any LiveCode game :( 60 fps is actually a lot in ANY mobile game. But LiveCode doesn't use the GPU for graphics (my guess) so the graphics performance is not built for advanced gaming. It's the same on the desktop but on a modern computer you have enough horse power to get some decent game performance anyway. But there are some things too look out for to get better performance.
  1. Ensure you use lock screen and unlock screen
  2. Use images instead of graphics.
  3. Don't use graphic effects Include the effects in the images instead.
  4. Don't use gradients. Include the gradients in the images instead.
  5. Optimize your code!

Re: 60 frames per second

Posted: Thu Apr 21, 2011 8:39 pm
by Danny
Thanks! Luckily it isn't critical in my game I was just curious if that was possible. I'll definitely take into account the optimization tips so that it might run smoother.
By the way, you wouldn't have had any trouble uploading an app to the app store would you? Because I keep having this problem with codesign verification.

Re: 60 frames per second

Posted: Fri Jun 10, 2011 10:18 am
by Mark
Danny,
I keep having this problem with codesign verification
You might want to start a new thread about this. Give an exact description of what you're doing and at which point you get stuck and we might be able to help you.

Kind regards,

Mark