Joli

我们发现模型动画在华为手机上有局部抖动不顺滑的问题,但是在桌面模拟器和小米手机上没问题,目前只发现在华为手机上有这个问题。

Engine: cocos2dx_3.17
SpineRuntime: 3.7
SpineEditor: 3.7.91
Joli
  • 전체글: 5

Nate

I would suggest trying the 4.0 runtimes. If you still have the problem, you'll likely need to debug to determine why it occurs. Is it the entire skeleton? Is it applying IK constraints? It could be a bug in those devices but you'd need to figure out exactly what is going wrong to be able to determine if there is a workaround.
我建议尝试4.0的运行时间。如果你仍然有这个问题,你很可能需要进行调试以确定它发生的原因。是整个骨架的问题吗?它是否应用了IK约束?这可能是这些设备的一个错误,但你需要弄清楚到底是什么地方出了问题,以便能够确定是否有一个解决方法。

To try the 4.0 runtimes you will need to export your projects using 4.0 and update the runtimes code to use 4.0.
要尝试4.0运行时,你需要使用4.0导出你的项目,并更新运行时的代码以使用4.0。
사용자 아바타
Nate

Nate
  • 전체글: 11543

Joli

我已经使用Editor4.0导出模型,并用Runtime4.0播放,发现在华为手机还是存在局部抖动现象。请查看我的视频,左边模型的眉毛和发髻存在抖动不自然的现象。

链接: https://pan.baidu.com/s/1xKR_i-fX0hl3OsvM7gkJaA
密码: c5v1
https://pan.baidu.com/s/1xKR_i-fX0hl3OsvM7gkJaA

Engine: cocos2dx_3.17
SpineRuntime: 4.0
SpineEditor: 4.0
Joli
  • 전체글: 5

Mario

我可以看到视频前几秒的帧率非常低,导致出现抖动动画。 但这与 Spine 无关。 Spine 代码在您运行的所有设备上都是相同的,包括浮点舍入模式和可能的快速数学编译器设置。

添加打印帧之间的时间增量到控制台到您的应用程序。 我很确定第一次查看秒的增量时间会非常高,例如 500 毫秒。 你可以附加一个分析器来看看是什么花了这么长时间。 但我的猜测是,华为手机上的 Android 版本正在做一些不好的事情,例如 当您从 IDE 部署新的 APK 后,操作系统遇到新的 APK 时,显卡驱动程序有问题,或者在后台发生了一些“应用程序优化”过程。

这很可能不是我们可以在 Spine 源中修复的问题,因为 Spine 不是导致此问题的原因。

I can see the frame rate in the first few seconds of the video is very low, resulting in the appearance of a jittery animation. But that is not Spine related. The Spine code is the same on all the devices you run, including floating point rounding modes and possibly fast math compiler settings.

Add printing the delta time between frames to the console to your app. I'm pretty sure that the delta time for the first view seconds will be extremely high, e.g. 500ms. You could attach a profiler to see what is taking so long. But my guess is, that the Android version on the Huwaii phone is doing something bad, e.g. a bad graphics card driver, or some "app optimization" process happening in the background when the operating system encounters a new APK after you deploy it from your IDE.

This is very likely not something we can fix in the Spine sources, as Spine is not the cause of this issue.
사용자 아바타
Mario

Mario
  • 전체글: 2843


다시 돌아감: 中国Spine用户