Game runs very slow on PC and Android (DEF-3006) (SOLVED)

I create a empty mobile game project, then do nothing, directly build, ~50ms per frame.


Is vsync lead to this ?

又一个同胞……也是cocos把你逼到这里来的?

我们老大选了这破玩意,还不如Unity呢

2 Likes

哈哈哈,各有利弊
那个好像不是很准确,用这个看

这个怎么弄得啊?

function init(self)
    msg.post("@system:", "toggle_profile")
end

你的项目在android上卡吗?是3D还是2D的?

2d不卡,3d没试过,我也是初学乍练。

项目复杂吗?game.project怎么设置update frequency和dt的?swap_interval是什么啊?求教一下。

我的麻将游戏在Android上卡死了

没遇到过我还没用这个做过成品项目。
我感觉Defold性能算不错的了,为此我还买下了defolder.com域名。

2 Likes

Can you provide more information? What android model? I can’t see any reason why it would be so slow, the majority of the frame is spent waiting on vsync. Can you check for any battery-save mode on the phone?

3 Likes

Samsung and Vivo. Android 6.0 or later. Can you test empty project on Windows ?

The high number on the VSync implies it’s something with the hardware. On your android, do you have some sort of battery saving mode on, or perhaps other vsync related settings?

I have no any battery-saving mode on, it runs on Samsung and iPad mini 4 slow. I have tested by visual profile, ~16ms on Windows, but also very slow on Android.

1 Like

用release模式,别用debug模式。

你测试过了?我一直用Debug模式打包

我听说过debug打包特别卡。

Can you please share the project with me (bjorn.ritzl@king.com)?

是因为Debug模式会输出日志才卡吗?我这不是因为这个,我试了用Release打包,一样卡。