Is it possible to get consistent 60fps on iOS?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
emu
Prole
Posts: 2
Joined: Sat Jun 18, 2016 10:42 pm

Is it possible to get consistent 60fps on iOS?

Post by emu »

Hey people! I've been playing around with LÖVE the past couple days and I'm really liking it! So I'm new here. Nice place you've got! :awesome:

I'm planning to build an iOS game. A high priority for me is having smooth, 60fps animation. It runs perfectly smooth on my Mac. I've got a really simple prototype game going on, so I figured it'd be a good time to see how it runs on iOS. I'm not part of the paid iOS Developer Program, so I'm only using the iOS simulator.

In the simulator, it looks pretty clunky. love.timer.getFPS() reports that it's running at 50-60fps, but it looks like 20-30fps to my eyes.

I thought this might have to do with physics in my game, so I tried this really simple test case:

Code: Select all

-- this draws a little ball that moves
-- up and down smoothly

function love.load ()
  love.window.setMode( 375, 667) -- iPhone 6S size
  t=0
end

function love.update ()
  t=t+0.1
end

function love.draw ()
  love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10)
  local w, h = love.graphics.getDimensions()
  local y = h/2 + math.sin(t) * h/2
  love.graphics.circle("fill", w/2, y, 10)
end
Again, it reports that it's running at ~60fps, but it looks like about 30fps.

If I were running this on a physical iPhone, would it look as smooth as the fps that's being reported? Or is the iOS simulator pretty accurate with rendering performance? I'd like to get to the bottom of this before plopping down a big chunk of change to join the iOS Developer Program.

Thanks for your help!
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Is it possible to get consistent 60fps on iOS?

Post by undef »

I believe that these days you don't need to join the iOS Developer Program to test on your iOS device.

Yup: link
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
emu
Prole
Posts: 2
Joined: Sat Jun 18, 2016 10:42 pm

Re: Is it possible to get consistent 60fps on iOS?

Post by emu »

undef wrote:I believe that these days you don't need to join the iOS Developer Program to test on your iOS device.

Yup: link
Oh, that's great! I'll try it out and report back with results.

EDIT: Aaaaand it works beautifully on my phone. So much smoother than the simulator. Thanks so much for the info, undef!
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Is it possible to get consistent 60fps on iOS?

Post by undef »

You're welcome!
twitter | steam | indieDB

Check out quadrant on Steam!
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests