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


#1

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


Is vsync lead to this ?


#2

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


#3

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


#4

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


#5

这个怎么弄得啊?


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

#7

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


#8

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


#9

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


#10

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


#11

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


#12

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?


#13

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


#14

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?


#15

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.


#16

用release模式,别用debug模式。


#17

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


#18

我听说过debug打包特别卡。


#19

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


#20

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