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
1
Question by DaveA · Oct 26, 2010 at 11:17 PM · mobileperformancememorylightmapping

When is Lightmapping bad for performance?

Looking to up my performance, I'm exploring lightmapping. The manual says basically it's a good thing because dynamic lights on objects will slow things down. Ok, but adding lightmaps also increases the texture usage. I'm a bit worried, esp on iPhone and Android, that the resulting lightmaps will blow my memory out.

What do you recommend?

Comment
Add comment · Show 5
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 DaveA · Oct 26, 2010 at 11:18 PM 0
Share

Also, I assume that after a lightbake, I remove or deactivate the lights involved in baking, right? Or is that automatic? Any advice on point vs directional vs ambient?

avatar image Will 7 · Oct 27, 2010 at 12:45 AM 0
Share

I have never tried baking in unity but if you bake the textures at the res they are at already then surely there will be absolutely no difference in performance usage from the textures?

avatar image Eric5h5 · Oct 27, 2010 at 01:55 AM 0
Share

@Will: lightmaps add an additional texture on top of the textures you're already using. Otherwise you couldn't use tiling for regular textures, and that's why they use a second UV set.

avatar image Jessy · Oct 27, 2010 at 02:44 AM 0
Share

$$anonymous$$y recommendation is to model your shadows whenever possible. I HATE low-res lightmaps; looks like splatters of garbage. And not in a good way. :-P

See Graphicalgeek's post.

http://forum.unity3d.com/threads/35160-Share-your-thoughts-on-vertex-colors-vs.-texture-maps

avatar image DaveA · Oct 27, 2010 at 06:14 PM 0
Share

Will, as I understand it, the more 'live' lights (not static, that is) you have, the more calculations need to be done, so lightmaps improve performance by eli$$anonymous$$ating actual lights.

Jessy, you mean make polygonal models of shadows using darker colors etc.?

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Eric5h5 · Oct 27, 2010 at 02:24 AM

Use as low resolution for the lightmap as you can get away with. Typically texel size for lightmaps is far larger than you'd use for regular textures, but since the lightmaps are just shadows and general lighting information rather than detail, you can get away with it. The built-in lightmapping in Unity will tell you the texture size and VRAM usage; you can always resize the generated lightmaps later (or rebake at a lower resolution).

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

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

1 Person is following this question.

avatar image

Related Questions

Why would Baked GI decrease my performance? 0 Answers

How do off-camera gameobjects affect performance? 1 Answer

2d or 3d for better perform on mobile devices? 1 Answer

many prefabs. application Performance 1 Answer

Efficient way of having 1 draw call but allowing for debris physics [Mobile] 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