• 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 TheZinex · Oct 31, 2018 at 11:04 PM · performanceoptimizationgraphics card

GPU gradually raises in usage, I uncap and then recap the FPS and its drops again

Hey guys t$$anonymous$$s is my first time posting here,
Been working with unity for quite a w$$anonymous$$le now for many projects, however in my most recent project, Creating a mine-craft clone(with a twist) for fun, I'm running into a weird issue with the GPU performance.

I've got a head for optimization, and that is pretty much what t$$anonymous$$s project is for, seeing how efficient i can be, however I'm running into a weird 'bug' with the GPU usage w$$anonymous$$ch i cant seem to track down and is noticeable in even fresh projects.

I have my game capped to 120fps. Using: Application.targetFrameRate = 120; (ive tried Vsync also, has the same issue)

at the start, it uses 2-4% of my GPU in task manager, over time, it will randomly spike up to 40% and stay there. I bound a key to toggle change the target frame rate to -1 (infinite) and 120, If I double tap it, unlocking the frame rate for less than half a second, the GPU usage goes back down to 2-4% for a w$$anonymous$$le before eventually spiking back up, and its very repeatable and seems to not be effected by what caps the FPS or any rendering i'm actually doing

For these tests my character was standing still, and i didn't move or rotate the camera in order to try and keep consistent results. It happens when built and inside the editor

Although t$$anonymous$$s is not game breaking, and the gpu controls itself when t$$anonymous$$ngs actually get asked of it (even when pinned, having a lot of work (millions of verts as an example) it will calm down and won't be effected. just having the gpu randomly pin itself at 40% when only 5% or so is needed is kinda frustrating me.

Thankyou in advance to any of the advice, Ask any questions you guys need from the project Zinex,

EDIT: Just tested t$$anonymous$$s with a blank scene and fresh project, even with not$$anonymous$$ng in the project t$$anonymous$$s is still happening on unity 2018.14f1

Video

The Line of code that happens when I press the button L: Image: alt text

dc93553bcb346d6b05877e5bd2387870.png (8.0 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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

116 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

Related Questions

Merging together all GameObjects of an Array? 1 Answer

Windows Phone performance 0 Answers

How do I get my game to run faster? 4 Answers

Unity loading large prefab(many child objects) really slow on android 0 Answers

Colliders vs Callbacks: Which is better for performance in my case? 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