Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Timing different in Device Player — Gideros Forum

Timing different in Device Player

MontezumaVMontezumaV Member
edited June 2017 in Bugs and issues
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 ?

Comments

  • 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 Maintainer
    Some Windows PC's sync at faster than 60hz - maybe that is it?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • MontezumaVMontezumaV Member
    edited June 2017
    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 Maintainer
    edited June 2017
    function gameLoop(e)
      local fps = 1//e.deltaTime
      Print("FPS:",fps)
    end
     
    stage:addEventListener(Event.ENTER_FRAME,gameLoop)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
Sign In or Register to comment.