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 /
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 this is my first time posting here,
Been working with unity for quite a while 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 this project is for, seeing how efficient i can be, however I'm running into a weird 'bug' with the GPU usage which 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 while 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 this is not game breaking, and the gpu controls itself when things 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 this with a blank scene and fresh project, even with nothing in the project this 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.

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

How Can I Reduce Build Time for Script-Heavy Projects? 2 Answers

How to optimize with a lot of objects 0 Answers

A very simple optimization question, particle 1 Answer

Double Buffer and/or Mesh.MarkDynamic in Unity 5 0 Answers

What's faster: Lerp or LerpUnclamped? (Performance) 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