Quick Links: Gideros Home | Download Gideros | Developer Guide
Timing different in Device Player
  • Hallo Guys and Girls i have a Question :)

    i use a Timer for an Animation. the Timer starts like this :
    timer = Timer.new(10, 0)


    and the callback Function is this :
    function player:onTimer()
    local s = self.sprite
    --self.sprite:setAlpha(self.sprite:getAlpha() - 0.1)
    if(not (s:getScaleY() <= 0)) then
    self.sprite:setScaleY(s:getScaleY() - 0.005)
    else
    self.timer:stop()
    end
    end


    so the basic Idea is to Shrink a Sprite. This works well on my PC Simulator but it is slower on the Device Player ? ( Android LG G4 ) .

    Is this becaus of the Code ?
  • keszegh +1 -1
    Member
    on the pc simulator you can change manually the fps in its settings, perhaps it's not the same as on the device.
  • They have the same FPS but the Device Player is much slower
  • SinisterSoftSinisterSoft +1 -1
    Maintainer
    Some Windows PC's sync at faster than 60hz - maybe that is it?
  • Some Windows PC's sync at faster than 60hz - maybe that is it?

    how can i check this ? :D its very fast on the PC Simulator but i thought timer has nothing to do with Hz or FPS ? ( FPS are 30 )



  • SinisterSoftSinisterSoft +1 -1
    Maintainer
    function gameLoop(e)
    local fps = 1//e.deltaTime
    Print("FPS:",fps)
    end
     
    stage:addEventListener(Event.ENTER_FRAME,gameLoop)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID

In this Discussion

Top Posters