It looks like you're new here. If you want to get involved, click one of these buttons!
local fps_tf = TextField.new(nil, "FPS: -", "Aq|") fps_tf:setPosition(20, 20) fps_tf:setScale(2) stage:addChild(fps_tf) local timer = 0 local fps_timer = 0 stage:addEventListener("enterFrame", function(e) local dt = e.deltaTime timer += dt fps_timer += dt if (fps_timer > 1) then fps_timer = 0 fps_tf:setText("FPS: ".. 1 // dt) end end)
MoKaLux said:I don't think this is possible to display draw info directly on android because I believe this is a function built in gideros player.You will need to implement it yourself in your android apk.Sample code:local fps_tf = TextField.new(nil, "FPS: -", "Aq|") fps_tf:setPosition(20, 20) fps_tf:setScale(2) stage:addChild(fps_tf) local timer = 0 local fps_timer = 0 stage:addEventListener("enterFrame", function(e) local dt = e.deltaTime timer += dt fps_timer += dt if (fps_timer > 1) then fps_timer = 0 fps_tf:setText("FPS: ".. 1 // dt) end end) There is also this link:https://wiki.gideros.rocks/index.php/Examples#FPS_.40atilim
I don't think this is possible to display draw info directly on android because I believe this is a function built in gideros player.You will need to implement it yourself in your android apk.Sample code:
Likes: MoKaLux
hgy29 said:Actually since it is in the player, it could be exposed through a lua api...
Actually since it is in the player, it could be exposed through a lua api...
hgy29 said:@Yan: https://wiki.gideros.rocks/index.php/Application:enableDrawInfo
@Yan: https://wiki.gideros.rocks/index.php/Application:enableDrawInfo
Yan said: hgy29 said:@Yan: https://wiki.gideros.rocks/index.php/Application:enableDrawInfo Hate myself, before ask I looked to reference and didnt found this. Or you just added? Feel like a jerk.
Likes: MoKaLux, talis
Comments
You will need to implement it yourself in your android apk.
Sample code:
https://wiki.gideros.rocks/index.php/Examples#FPS_.40atilim
Likes: MoKaLux
Likes: MoKaLux
Likes: MoKaLux, talis