问题可能是由于Unity2018.4中的Burst编译器与某些AMD GPU驱动程序的兼容性问题引起的。可以使用新的Burst编译器版本来解决此问题。例如,升级到Burst 1.8.0或更高版本。另外,确保使用最新的AMD GPU驱动程序。
示例代码:
//在Burst编译器中使用合适的注释
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[Comment("计算开始")]
private float CalculateStartValue(float x, float y)
{
float result = x + y;
return result;
}
下一篇:不如预期的结果与等待组。