60 frames per second

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Danny
Posts: 106
Joined: Tue Nov 09, 2010 1:28 am

60 frames per second

Post 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
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: 60 frames per second

Post 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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Danny
Posts: 106
Joined: Tue Nov 09, 2010 1:28 am

Re: 60 frames per second

Post 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
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: 60 frames per second

Post by Mark »

Danny,

Please define "frame".

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Danny
Posts: 106
Joined: Tue Nov 09, 2010 1:28 am

Re: 60 frames per second

Post 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.
hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am

Re: 60 frames per second

Post 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!
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
Danny
Posts: 106
Joined: Tue Nov 09, 2010 1:28 am

Re: 60 frames per second

Post 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.
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: 60 frames per second

Post 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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Post Reply