Search Unity

Help me in optimizing my game. Do not run smoothly.

Discussion in 'iOS and tvOS' started by qamarzaman, Jul 29, 2011.

  1. qamarzaman

    qamarzaman

    Joined:
    Jul 1, 2010
    Posts:
    85
    Hi

    I am going to launch the game, but it runs slow here are profiler stats (iPhone 3G)

    iPhone Unity internal profiler stats:
    cpu-player> min: 12.7 max: 188.0 avg: 40.1
    cpu-ogles-drv> min: 2.2 max: 27.1 avg: 4.3
    cpu-waits-gpu> min: 0.0 max: 0.1 avg: 0.0
    msaa-resolve> min: 0.0 max: 0.0 avg: 0.0
    cpu-present> min: 1.4 max: 27.6 avg: 5.9
    frametime> min: 44.6 max: 218.8 avg: 58.8
    draw-call #> min: 17 max: 22 avg: 20 | batched: 12
    tris #> min: 1368 max: 1408 avg: 1391 | batched: 655
    verts #> min: 1167 max: 1211 avg: 1195 | batched: 442
    player-detail> physx: 4.9 animation: 1.0 culling 0.0 skinning: 1.9 batching: 0.4 render: 9.4 fixed-update-count: 1 .. 3
    mono-scripts> update: 20.8 fixedUpdate: 0.0 coroutines: 0.0
    mono-memory> used heap: 315392 allocated heap: 630784 max number of collections: 0 collection total duration: 0.0
    ----------------------------------------
    iPhone Unity internal profiler stats:
    cpu-player> min: 26.0 max: 43.1 avg: 34.2
    cpu-ogles-drv> min: 2.3 max: 5.5 avg: 3.2
    cpu-waits-gpu> min: 0.0 max: 1.3 avg: 0.1
    msaa-resolve> min: 0.0 max: 0.0 avg: 0.0
    cpu-present> min: 1.4 max: 25.6 avg: 6.6
    frametime> min: 42.4 max: 74.1 avg: 52.2
    draw-call #> min: 17 max: 24 avg: 21 | batched: 9
    tris #> min: 1368 max: 1390 avg: 1386 | batched: 642
    verts #> min: 1167 max: 1199 avg: 1191 | batched: 433
    player-detail> physx: 5.3 animation: 1.1 culling 0.0 skinning: 1.3 batching: 0.4 render: 8.3 fixed-update-count: 1 .. 2
    mono-scripts> update: 15.6 fixedUpdate: 0.0 coroutines: 0.1
    mono-memory> used heap: 319488 allocated heap: 630784 max number of collections: 0 collection total duration: 0.0
    ----------------------------------------
    iPhone Unity internal profiler stats:
    cpu-player> min: 27.8 max: 42.2 avg: 33.4
    cpu-ogles-drv> min: 2.2 max: 5.5 avg: 2.8
    cpu-waits-gpu> min: 0.0 max: 0.1 avg: 0.0
    msaa-resolve> min: 0.0 max: 0.0 avg: 0.0
    cpu-present> min: 1.4 max: 22.7 avg: 7.3
    frametime> min: 44.0 max: 65.8 avg: 52.2
    draw-call #> min: 19 max: 21 avg: 20 | batched: 13
    tris #> min: 1386 max: 1392 avg: 1389 | batched: 661
    verts #> min: 1191 max: 1203 avg: 1197 | batched: 445
    player-detail> physx: 5.0 animation: 1.0 culling 0.0 skinning: 1.2 batching: 0.5 render: 7.8 fixed-update-count: 1 .. 3
    mono-scripts> update: 16.2 fixedUpdate: 0.0 coroutines: 0.0
    mono-memory> used heap: 327680 allocated heap: 630784 max number of collections: 0 collection total duration: 0.0
    ----------------------------------------
    iPhone Unity internal profiler stats:
    cpu-player> min: 28.3 max: 108.1 avg: 40.2
    cpu-ogles-drv> min: 2.1 max: 5.9 avg: 3.0
    cpu-waits-gpu> min: 0.0 max: 1.3 avg: 0.1
    msaa-resolve> min: 0.0 max: 0.0 avg: 0.0
    cpu-present> min: 1.3 max: 21.5 avg: 4.5
    frametime> min: 47.0 max: 115.1 avg: 55.7
    draw-call #> min: 20 max: 23 avg: 21 | batched: 13
    tris #> min: 1388 max: 1410 avg: 1394 | batched: 661
    verts #> min: 1193 max: 1215 avg: 1202 | batched: 445
    player-detail> physx: 6.2 animation: 0.9 culling 0.0 skinning: 1.4 batching: 0.5 render: 8.2 fixed-update-count: 1 .. 3
    mono-scripts> update: 20.8 fixedUpdate: 0.0 coroutines: 0.1
    mono-memory> used heap: 331776 allocated heap: 630784 max number of collections: 0 collection total duration: 0.0


    please help me in making game run smoothly.
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Use search form.
     
  3. echologin

    echologin

    Joined:
    Apr 11, 2010
    Posts:
    1,078
    My crystal ball tells me change line 512 in your main source code file to

    var splitdeprofits:boolean = true;
     
    Last edited: Jul 29, 2011
  4. jackshiels

    jackshiels

    Joined:
    Feb 29, 2008
    Posts:
    357
    At this rate you are gonna get banned.

    But LOOOL