Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
6
Question by $$anonymous$$ · Sep 26, 2015 at 11:53 PM · lightingshadowbug-perhapsmemory-leakram

Unity 5 Lighting RAM Problem

I have found that using a light in Unity 5 with any type of shadow causes the Unity editor memory usage to skyrocket. I have tried turning shadows off, and my scene idles happily at about 130 MB of usage. If I turn shadows on, it increases at a rate of around 4 MB/s and doesn't stop until the game becomes unplayable (it got above 1GB total ram usage). Is this a bug in Unity 5? Anyone know how I can resolve this issue?

I am using Unity 5.2.1f1 Personal edition.

Also, the memory usage stays high after I stop play, and doesn't reset when I press play again; it just keeps adding.

Edit: I should mention I am on 64 bit Windows 10. GPU is Nvidia GTX770 using driver 355.83.

Comment
Add comment · Show 7
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 SpaceManDan · Sep 27, 2015 at 07:13 AM 0
Share

Sounds like a driver issues, not a unity thing.

avatar image Xoduz · Oct 07, 2015 at 10:10 PM 0
Share

Same problem here, on Unity 5.2.1f in Windows 7. Happens in editor and player. As long as there's a light source with shadows enabled, and some objects that cast shadows visible, memory usage keeps climbing.

avatar image danw_unity ♦♦ · Oct 13, 2015 at 10:56 AM 0
Share

Does this happen in a simple scene (e.g. a single cube)? Does the rate of memory consumption depend on the complexity of the scene?

Dan

Unity Support

avatar image sebastien-barry danw_unity ♦♦ · Oct 13, 2015 at 01:33 PM 1
Share

Does this happen in a simple scene (e.g. a single cube)? Yes Does the rate of memory consumption depend on the complexity of the scene? Yes

The memory leak start as soon as receive shadow is activated on mesh

It's easy to see the problem, create an empty scene, add some objects that receive shadows and a directionnel light with shadows. If you disable receive shadow the memory stop increasing.

avatar image sebastien-barry · Oct 13, 2015 at 01:34 PM 0
Share

Not resolve in 5.2.1p1. I've got the same problem. Hope it will be release in next release. There was not problem before 5.2 Tested on 3 differents computer with different graphic card, and I get the same problem

avatar image danw_unity ♦♦ · Oct 15, 2015 at 01:15 PM 2
Share

Thanks for your input everyone. We have a bug our database now (734269) (from @Xoduz I believe; thanks!) which hopefully will become visible on issuetracker.unity3d.com after it has been through the full QA process. But we have seen the issue here so this should get some attention now.

Dan

Unity Support

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by mikelortega · Oct 21, 2015 at 08:16 AM

You can check the issue ID 736709 in the Unity Issue Tracker:

Memory leak when shadows are turned on

Please, vote on this issue so it gets prioritized. I think it's important, with big scenes this issue becomes quite critical.

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
avatar image
1

Answer by samshoe12 · Mar 25, 2016 at 07:19 PM

I have the same exact problem, but it progresses to the point of the memory spiking to 100%, disk at 100%, and CPU at 98%, which is followed shortly thereafter by the screen not just going dark, but shutting off completely, even though the computer stays on. This cannot be fixed unless you reboot completely, which causes huge problems on startup of my computer.

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 danw_unity ♦♦ · Mar 28, 2016 at 07:57 AM 0
Share

Which version of Unity are you using? Bug 736709 was fixed in 5.3 and also in 5.2.2p2.

Dan

Unity Support

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

36 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

Related Questions

Cast shadow on ground plane with sky box / VR. 0 Answers

Trees not casting shadows properly 1 Answer

Why Ui/lit shader makes the object go invisible? 1 Answer

Weird shadows when camera is in the right position 0 Answers

Unity3D Lightning/Shadow Bug 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