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 glider521al · Jan 16, 2013 at 11:31 AM · 2dguirenderingperformancedraw

Sudden frame rate drop during rendering

I used the GUI to render some tiles across the screen with a sidescrolling offset. Everything ran fine at about 80 FPS.

However about a few minutes in the framerate suddenly dropped to about 40 FPS and stayed there.

What's really strange is that if I let my computer rest for a few minutes and run the program again the same thing happens (starts at 80FPS). If I relaunch it straight away the FPS is around 40.

Same number of draw calls, no randomly generated events, why is this?

Is there something I can change in the quality settings to rectify this problem?

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 glider521al · Jan 16, 2013 at 09:48 PM

Please, this issue is actually so severe to me it's making me consider switching to XNA/Monogame.

I think it's something to do with how much resources the game requests from the computer. I noticed that games like Bastion would cause my computer to heat up faster (and my computer fan to work harder). Whilst running this game, barely causes the computer (windows 7 ASUS laptop) to make a sound.

I have a feeling it's possible because another game made by Unity: Edge of space Rendered just as much to the screen, caused my computer to work harder, without the infuriating framerate drop a few minutes later: http://www.desura.com/games/edge-of-space

Comment
Add comment · Show 3 · 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 robertbu · Jan 17, 2013 at 01:55 AM 0
Share

Take a look at the stats before and after the slowdown. Anything obvious change? Anything being output to the console? If you have Pro, run a deep profile and see what is taking time. Try running System.GC.Collect(); every few seconds. Take a look at the processes running with Windows Task $$anonymous$$anager. Is something other than Unity pulling a chunk of CPU time when the FSP srops. Try your app on a different machine.

avatar image robertbu · Jan 17, 2013 at 02:10 AM 0
Share

Oh, and you might want to verify the frame rate drop by calculating frame rate a couple of different ways. There is a script here:

http://wiki.unity3d.com/index.php/FramesPerSecond

avatar image glider521al · Jan 20, 2013 at 05:08 AM 0
Share

Thankyou robertbu.

I've been using FRAPS to verify my framerate.

I've also noticed that compiling the game as a standalone makes it run about 25-40% faster.

The mysterious frame rate drop seems to happen only when my computer heats up, so it could be something with the GPU.

Still I would prefer the game to run as fast as possible, so any other tips are appreciated.

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

9 People are following this question.

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

Related Questions

How To Disable Gameobjects When Not In View, Then Enable When In View 2 Answers

How to Display Hundreds of Thousands of Sprites? 2 Answers

What is the theoretical concept of VSync ? 1 Answer

Mobile Performance with GUI and Rotations 0 Answers

How to Convert each 2D Array to GameObject 2 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