在Unity中创建的游戏速度太慢,并且内置到iPad后崩溃。如何解决这个问题?

问题描述 投票:-3回答:1

我已经在Unity中建立了我的第一款游戏Aesopicas。它可以在Unity的游戏窗口中的Mac上很好地运行,但是在我将其构建到iPad上之后,游戏变得非常缓慢并崩溃。我基本上是通过创建1级,然后稍微调整所有其他级别来创建9个不同级别的。我认为记忆有问题,但我什至不知道从哪里开始。这是来自Xcode的控制台消息:

2019-12-20 23:34:33.181112+0100 Aesopicas[1856:158175] [DYMTLInitPlatform] platform initialization successful
2019-12-20 23:34:33.389544+0100 Aesopicas[1856:157832] Built from '2019.1/staging' branch, Version '2019.1.7f1 (f3c4928e5742)', Build type 'Development', Scripting Backend 'il2cpp'
2019-12-20 23:34:33.419052+0100 Aesopicas[1856:157832] -> registered mono modules 0x10262cc40
-> applicationDidFinishLaunching()
PlayerConnection initialized from /var/containers/Bundle/Application/DE82F3AF-5A93-4309-9E79-166CF7A792FD/Aesopicas.app/Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55000
Multi-casting "[IP] 192.168.1.177 [Port] 55000 [Flags] 2 [Guid] 1809220790 [EditorId] 3469678780 [Version] 1048832 [Id] iPhonePlayer(Daniels-iPad):56000 [Debug] 0 [PackageName] iPhonePlayer" to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55000]
PlayerConnection already initialized - listening to [0.0.0.0:55000]
2019-12-20 23:34:33.826422+0100 Aesopicas[1856:157832] Metal GPU Frame Capture Enabled
2019-12-20 23:34:33.830255+0100 Aesopicas[1856:157832] Metal API Validation Disabled
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A7 GPU
Initialize engine version: 2019.1.7f1 (f3c4928e5742)
2019-12-20 23:34:38.049646+0100 Aesopicas[1856:157832] [Common] _BSMachError: port bd03; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2019-12-20 23:34:38.051391+0100 Aesopicas[1856:157832] [Common] _BSMachError: port bd03; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
UnloadTime: 8.291500 ms
Setting up 1 worker threads for Enlighten.
  Thread -> id: 171047000 -> priority: 1 
2019-12-20 23:34:40.541065+0100 Aesopicas[1856:158194] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x11154a180] get output frames failed, state 8196
2019-12-20 23:34:40.541536+0100 Aesopicas[1856:158194] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x11154a180] get output frames failed, state 8196
2019-12-20 23:34:40.544719+0100 Aesopicas[1856:158194] TIC Read Status [1:0x0]: 1:57
2019-12-20 23:34:40.546116+0100 Aesopicas[1856:158194] TIC Read Status [1:0x0]: 1:57
2019-12-20 23:34:41.489586+0100 Aesopicas[1856:158161] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x1115589a0] get output frames failed, state 8196
2019-12-20 23:34:41.495355+0100 Aesopicas[1856:158161] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x1115589a0] get output frames failed, state 8196
2019-12-20 23:34:41.496473+0100 Aesopicas[1856:158161] TIC Read Status [2:0x0]: 1:57
2019-12-20 23:34:41.496712+0100 Aesopicas[1856:158161] TIC Read Status [2:0x0]: 1:57
2019-12-20 23:34:41.762752+0100 Aesopicas[1856:158194] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x11290c790] get output frames failed, state 8196
2019-12-20 23:34:41.763611+0100 Aesopicas[1856:158194] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x11290c790] get output frames failed, state 8196
2019-12-20 23:34:41.765555+0100 Aesopicas[1856:158194] TIC Read Status [3:0x0]: 1:57
2019-12-20 23:34:41.765994+0100 Aesopicas[1856:158194] TIC Read Status [3:0x0]: 1:57
Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 19.088167 ms
System memory in use before: 66.6 MB.
System memory in use after: 31.8 MB.

Unloading 18 unused Assets to reduce memory usage. Loaded Objects now: 607.
Total: 26.403167 ms (FindLiveObjects: 5.507875 ms CreateObjectMapping: 0.042042 ms MarkObjects: 13.276292 ms  DeleteObjects: 7.574125 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 5.782208 ms
System memory in use before: 36.1 MB.
System memory in use after: 36.1 MB.

Unloading 19 unused Assets to reduce memory usage. Loaded Objects now: 588.
Total: 2.950250 ms (FindLiveObjects: 0.425167 ms CreateObjectMapping: 0.035500 ms MarkObjects: 1.722833 ms  DeleteObjects: 0.764625 ms)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 23.509542 ms
System memory in use before: 35.1 MB.
System memory in use after: 35.1 MB.

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 589.
Total: 5.186708 ms (FindLiveObjects: 1.129708 ms CreateObjectMapping: 0.097625 ms MarkObjects: 3.872875 ms  DeleteObjects: 0.078333 ms)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 15.703042 ms
System memory in use before: 35.1 MB.
System memory in use after: 35.1 MB.

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 589.
Total: 4.580750 ms (FindLiveObjects: 0.938375 ms CreateObjectMapping: 0.043042 ms MarkObjects: 3.493833 ms  DeleteObjects: 0.103708 ms)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
UnloadTime: 31.216750 ms
System memory in use before: 65.6 MB.
System memory in use after: 61.5 MB.

Unloading 11 unused Assets to reduce memory usage. Loaded Objects now: 1107.
Total: 14.885458 ms (FindLiveObjects: 0.747792 ms CreateObjectMapping: 0.748958 ms MarkObjects: 8.447125 ms  DeleteObjects: 4.937375 ms)

2019-12-20 23:35:22.009078+0100 Aesopicas[1856:158229] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
WARNING -> applicationDidReceiveMemoryWarning()
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 93.769542 ms
System memory in use before: 62.4 MB.
System memory in use after: 62.4 MB.

Unloading 30 unused Assets to reduce memory usage. Loaded Objects now: 1127.
Total: 25.216167 ms (FindLiveObjects: 1.501542 ms CreateObjectMapping: 0.222125 ms MarkObjects: 22.520708 ms  DeleteObjects: 0.969083 ms)

WARNING -> applicationDidReceiveMemoryWarning()
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 51.854375 ms
System memory in use before: 62.2 MB.
System memory in use after: 62.2 MB.

Unloading 34 unused Assets to reduce memory usage. Loaded Objects now: 1116.
Total: 31.331333 ms (FindLiveObjects: 1.685333 ms CreateObjectMapping: 0.304125 ms MarkObjects: 28.938500 ms  DeleteObjects: 0.399167 ms)

WARNING -> applicationDidReceiveMemoryWarning()
Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 47.544875 ms
System memory in use before: 97.2 MB.
System memory in use after: 96.9 MB.

Unloading 29 unused Assets to reduce memory usage. Loaded Objects now: 1149.
Total: 32.087625 ms (FindLiveObjects: 1.995542 ms CreateObjectMapping: 0.477167 ms MarkObjects: 27.473792 ms  DeleteObjects: 2.138667 ms)

WARNING -> applicationDidReceiveMemoryWarning()
Aesopicas was compiled with optimization - stepping may behave oddly; variables may not be available.
(lldb) 
c# xcode unity3d ipad didreceivememorywarning
1个回答
0
投票

请在播放器设置中检查您的单位图形API,手机使用GSL2,而GSL3不使用Vulkan。

  1. 更改图形API
  2. 请确保对您的游戏进行分析,以检查问题是否与您的关卡表现有关
  3. 构建游戏,然后查看问题是否仍然存在。
© www.soinside.com 2019 - 2024. All rights reserved.