Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Immortalis94 · Feb 21, 2017 at 04:44 AM · spriteperformanceframeratebatchingcpu usage

Unity 5.6.0b9 bad performance

Hi, I just created a new project and built an opening scene with a few sprites in it, Same scene ran in unity 4.7 with 60FPS but i cant get it in unity 5.6. I have only one simple script (fps counter), one simple animation(1 leaf), 15 sprites in a scene and canvas with text on it with only 5 draw calls. I even optimized sprite meshes by hand so they have less overdraw. It happens both on android and PC.
With mine fps script and internal profiler:
Unity4.7 > PC 450fps | Android 60fps
Unity5.6 > PC 110fps | Android 35-50fps

These are my settings

alt text alt text
This is the FPS script

 using UnityEngine;
 using UnityEngine.UI;
 
 public class FrameCounter : MonoBehaviour
 {
     public float refreshInterval;
 
     private Text label;
     private float delta;
     private float frames;
     private float res;
 
     // Use this for initialization
     void Start ()
     {
         label = GetComponent<Text>();
         delta = 0;
         frames = 0;
     }
     
     // Update is called once per frame
     void Update ()
     {
         frames++;
         delta += Time.deltaTime;
 
         if (delta > refreshInterval)
         {
             res = delta / frames;
             label.text = 1f / res + " (" + 1000f * res + "ms)";
             delta = 0;
             frames = 0;
         }
     }
 }

After some settings tweaking: turning off 32-bit buffer, deleting OpenGLES2 from graphics API list, setting quality settings to fastest i got some performance boost but not enough. Can't get 60FPS :( Here is the internal profiler results after tweaking:

 02-21 04:58:07.719 30216 30291 D Unity   : Android Unity internal profiler stats:
 02-21 04:58:07.719 30216 30291 D Unity   : cpu-player>    min: 12.7   max: 36.4   avg: 20.5
 02-21 04:58:07.719 30216 30291 D Unity   : cpu-ogles-drv> min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:07.719 30216 30291 D Unity   : gpu>           min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:07.720 30216 30291 D Unity   : cpu-present>   min: -20.0   max:  1.4   avg: -1.6
 02-21 04:58:07.720 30216 30291 D Unity   : frametime>     min: 13.0   max: 34.6   avg: 18.9
 02-21 04:58:07.720 30216 30291 D Unity   : batches>       min:   5    max:   5    avg:   5
 02-21 04:58:07.720 30216 30291 D Unity   : draw calls>    min:   5    max:   5    avg:   5
 02-21 04:58:07.720 30216 30291 D Unity   : tris>          min:   274  max:   274  avg:   274
 02-21 04:58:07.720 30216 30291 D Unity   : verts>         min:   348  max:   348  avg:   348
 02-21 04:58:07.720 30216 30291 D Unity   : dynamic batching> batched draw calls:  13 batches:   1 tris:   226 verts:   252
 02-21 04:58:07.720 30216 30291 D Unity   : static batching>  batched draw calls:   0 batches:   0 tris:     0 verts:     0
 02-21 04:58:07.720 30216 30291 D Unity   : player-detail> physx:  0.0 animation:  0.0 culling  0.0 skinning:  0.0 batching:  0.3 render: -0.3 fixed-update-count: 0 .. 0
 02-21 04:58:07.720 30216 30291 D Unity   : managed-scripts>  update:  0.0   fixedUpdate:  0.0 coroutines:  0.0
 02-21 04:58:07.720 30216 30291 D Unity   : managed-memory>   used heap: 372736 allocated heap: 512000, max number of collections: 0 collection total duration:  0.0
 02-21 04:58:07.720 30216 30291 D Unity   : ----------------------------------------
 02-21 04:58:08.838 30216 30291 D Unity   : Android Unity internal profiler stats:
 02-21 04:58:08.839 30216 30291 D Unity   : cpu-player>    min: 13.8   max: 48.2   avg: 19.8
 02-21 04:58:08.839 30216 30291 D Unity   : cpu-ogles-drv> min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:08.839 30216 30291 D Unity   : gpu>           min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:08.839 30216 30291 D Unity   : cpu-present>   min: -24.6   max:  3.6   avg: -1.2
 02-21 04:58:08.840 30216 30291 D Unity   : frametime>     min: 14.0   max: 33.5   avg: 18.6
 02-21 04:58:08.844 30216 30291 D Unity   : batches>       min:   5    max:   5    avg:   5
 02-21 04:58:08.845 30216 30291 D Unity   : draw calls>    min:   5    max:   5    avg:   5
 02-21 04:58:08.846 30216 30291 D Unity   : tris>          min:   274  max:   274  avg:   274
 02-21 04:58:08.846 30216 30291 D Unity   : verts>         min:   348  max:   348  avg:   348
 02-21 04:58:08.846 30216 30291 D Unity   : dynamic batching> batched draw calls:  13 batches:   1 tris:   226 verts:   252
 02-21 04:58:08.846 30216 30291 D Unity   : static batching>  batched draw calls:   0 batches:   0 tris:     0 verts:     0
 02-21 04:58:08.846 30216 30291 D Unity   : player-detail> physx:  0.0 animation:  0.0 culling  0.0 skinning:  0.0 batching:  0.3 render: -0.3 fixed-update-count: 0 .. 0
 02-21 04:58:08.847 30216 30291 D Unity   : managed-scripts>  update:  0.0   fixedUpdate:  0.0 coroutines:  0.0
 02-21 04:58:08.847 30216 30291 D Unity   : managed-memory>   used heap: 376832 allocated heap: 512000, max number of collections: 0 collection total duration:  0.0
 02-21 04:58:08.847 30216 30291 D Unity   : ----------------------------------------
 02-21 04:58:09.371   267   466 E ThermalEngine: [GPU_MON] Current gpu usage is 96 percent. Immediate Change!!
 02-21 04:58:09.371   267   466 E ThermalEngine: [GPU_MON] 96 percent. Current Sampling Time is 1 sec
 02-21 04:58:09.372   267   466 E ThermalEngine: [GPU_MON] GPU clk is not changed
 02-21 04:58:09.953 30216 30291 D Unity   : Android Unity internal profiler stats:
 02-21 04:58:09.953 30216 30291 D Unity   : cpu-player>    min:  7.1   max: 39.0   avg: 19.6
 02-21 04:58:09.953 30216 30291 D Unity   : cpu-ogles-drv> min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:09.954 30216 30291 D Unity   : gpu>           min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:09.954 30216 30291 D Unity   : cpu-present>   min: -20.5   max:  8.7   avg: -1.0
 02-21 04:58:09.954 30216 30291 D Unity   : frametime>     min: 15.2   max: 34.0   avg: 18.6
 02-21 04:58:09.957 30216 30291 D Unity   : batches>       min:   5    max:   5    avg:   5
 02-21 04:58:09.957 30216 30291 D Unity   : draw calls>    min:   5    max:   5    avg:   5
 02-21 04:58:09.958 30216 30291 D Unity   : tris>          min:   272  max:   274  avg:   272
 02-21 04:58:09.958 30216 30291 D Unity   : verts>         min:   344  max:   348  avg:   344
 02-21 04:58:09.959 30216 30291 D Unity   : dynamic batching> batched draw calls:  13 batches:   1 tris:   226 verts:   252
 02-21 04:58:09.959 30216 30291 D Unity   : static batching>  batched draw calls:   0 batches:   0 tris:     0 verts:     0
 02-21 04:58:09.959 30216 30291 D Unity   : player-detail> physx:  0.0 animation:  0.0 culling  0.0 skinning:  0.0 batching:  0.6 render: -0.6 fixed-update-count: 0 .. 0
 02-21 04:58:09.959 30216 30291 D Unity   : managed-scripts>  update:  0.0   fixedUpdate:  0.0 coroutines:  0.0
 02-21 04:58:09.959 30216 30291 D Unity   : managed-memory>   used heap: 380928 allocated heap: 512000, max number of collections: 0 collection total duration:  0.0
 02-21 04:58:09.959 30216 30291 D Unity   : ----------------------------------------
 02-21 04:58:10.352 30234 30234 W UnityMain: type=1400 audit(0.0:800): avc: denied { read } for name="scaling_cur_freq" dev="sysfs" ino=27331 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
 02-21 04:58:11.069 30216 30291 D Unity   : Android Unity internal profiler stats:
 02-21 04:58:11.069 30216 30291 D Unity   : cpu-player>    min: 13.5   max: 36.7   avg: 20.5
 02-21 04:58:11.069 30216 30291 D Unity   : cpu-ogles-drv> min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:11.070 30216 30291 D Unity   : gpu>           min:  0.0   max:  0.0   avg:  0.0
 02-21 04:58:11.070 30216 30291 D Unity   : cpu-present>   min: -19.1   max:  1.0   avg: -1.9
 02-21 04:58:11.070 30216 30291 D Unity   : frametime>     min: 14.0   max: 33.8   avg: 18.6
 02-21 04:58:11.070 30216 30291 D Unity   : batches>       min:   5    max:   5    avg:   5
 02-21 04:58:11.071 30216 30291 D Unity   : draw calls>    min:   5    max:   5    avg:   5
 02-21 04:58:11.071 30216 30291 D Unity   : tris>          min:   272  max:   274  avg:   272
 02-21 04:58:11.071 30216 30291 D Unity   : verts>         min:   344  max:   348  avg:   344
 02-21 04:58:11.071 30216 30291 D Unity   : dynamic batching> batched draw calls:  13 batches:   1 tris:   226 verts:   252

What i am doing wrong?

screenshot-1.jpg (339.7 kB)
settings.jpg (353.7 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Immortalis94 · Feb 21, 2017 at 09:07 PM

Can anyone help ?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

131 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Shaders & Shadows: How far can I use for my mobile game for good performance? 0 Answers

Sprite size much bigger than originally - how to resolve 0 Answers

Baked lightning poor performance 0 Answers

How should I fix the post processing framerate 0 Answers

[Dynamic batching] Same sprite with same material not batching 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges