Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by GrandMasterHsu · Mar 16, 2013 at 02:46 AM · ioscrashperformancememory

CPU wait on GPU for finish

The game im making for iOS is having a lot of memory issues. so i started searching to see what could be the problem with instruments and with the OpenGL ES analyzer i came up with 2 occurrences where CPU wait on GPU for finish. I did some searches on it and im not exactly sure what it is still. nor am i sure how to fix it. can help me out with where to go with this?

Comment
Add comment · Show 4
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
avatar image Benproductions1 · Mar 19, 2013 at 12:33 AM 0
Share

what do you mean CPU waits for GPU to finish? Do you mean, that the CPU calculates what happens before the frame, then the GRP renders it?

avatar image GrandMasterHsu · Mar 19, 2013 at 09:37 PM 0
Share

well thats what the OpenGL ES analyzer showed. [CPU wait on GPU for finish] exact words. and i was wondering what could be the cause of it. is it my textures? or what?

avatar image Benproductions1 · Mar 19, 2013 at 09:40 PM 1
Share

Thats probably because the CPU is waiting for the GPU to finish rendering the frame

avatar image Alexey · Mar 27, 2013 at 09:29 AM 0
Share

check Graham reply, and yes - it has nothing to do with memory issues

1 Reply

· Add your reply
  • Sort: 
avatar image
5

Answer by Graham-Dunnett · Mar 20, 2013 at 01:26 PM

Simple description: On iOS once Unity has finished all its work, it will hand over the scene to OpenGL to render. The work inside OpenGL happens on the CPU, and the CPU ends up giving instructions to the GPU about what to render. Once the GPU has finished rendering what's on the screen is what your app wanted. Control then passes back from the OpenGL driver to Unity.

Actual description: If the work the GPU has to do is big, then this way of working means the CPU is idle for a lot of the time. So, whilst the GPU is busy doing it's thing, control actually returns to Unity, and it then gets on working hard on the next frame. This is meant to allow the CPU and the GPU to be busy all the time.

Now, if Unity has prepared frame N, and the GPU is still working on frame N-1, then the CPU has to idle waiting for the GPU to finish. This scenario is called GPU bound, and is the situation that Instruments is reporting. The Unity built in (non-Pro) profiler reports this as cpu-waits-gpu. The time spent inside OpenGL is shows as cpu-ogles-drv.

Comment
Add comment · Show 1 · 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
avatar image XinJinXiang · Mar 26, 2015 at 03:06 PM 0
Share

Hello Graham Dunnett I have a very urgent project for pc platform and it requires cpu-gpu synchronization. I want ask some questions about it.

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

14 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

Related Questions

[iOS Memory Question] At ~35MB of memory on a heavily multitasked iPhone4/iPad we are getting suspend-crashes after lowmemory warnings. Is there anything we can do? 1 Answer

Does assetbundle work well with mobile devices? 1 Answer

iOS Memory Handling Crash on Startup 0 Answers

Loading a Random Resource in a Folder Without Using Resources.LoadAll 0 Answers

Out of memory errors on iOS with 64-bit build 1 Answer


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