Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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 /
avatar image
1
Question by mosenco · Aug 20, 2020 at 11:59 PM · lightingpipelinerealtimeuniversal

Number of light in URP and in Default, got some problem

I started my project using URP, cause i'm targeting mobile and i read that URP is better for performance. My game is a roguelite/dungeon crawler in a.. dungeon and because of that, the visual that i have in mind is something cool lighted/dark with some lamp with warm light around the map and maybe some cool green light from a venomous water lying on the floor.

My map is procedural generated in runtime and for that i can't bake to generate some lightmap. In URP, as i saw in the settings of the URP, i have max 8 number of light active per scene............ while in the other hand, i tried to disable URP and turn everything in default and each light works fine.

So here my question: 1. is there a way, using URP, to have a lot of number of light (spot, point) in realtime active in the scene? 2. Both URP or default, is it ok to have a lot of lights for a mobile device? 3. using URP is really making some big difference in the mobile or between URP and default pipeline, there isn't that big difference and i can focus on Default pipeline, and "avoid" 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by N-8-D-e-v · Aug 21, 2020 at 03:19 AM

I don't have much experience with mobile, but realtime lights and mobile games don't mix well, baked lightmapping would be the way to go, but as you said, it's not possible with your game Maybe try something like this https://unity.com/how-to/advanced/optimize-lighting-mobile-games#:~:text=The%20best%20approach%20to%20achieve,into%20the%20game%20when%20needed.

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
0

Answer by revolute · Aug 21, 2020 at 04:29 AM

  1. Yes and no. You don't really need all the lights in the scene to be lit all the time. Disabling those that you do not need should work decently. However, a workaround is implementing a fake lighting system on top of unity. Pass the lights as an array of vectors, colors.

  2. No. For performance reasons, having excessive lights do not work well on any platform. For visual eye candy lighting calculations are preferred to be done per pixel; simple mobile game with 1440x720p would require at least that amount of pixel calculations. Each light would require a) normal vectors, from mesh or from texture, for correctness, b) normalization of the vector, c) dot product d) lerping of base color to light color multiplied by intensity (which differs from directional light to point light), e) addition of all light color result. Urp shaders have the option to do this on per vertex but this usually produces rather ugly but extremely (usually) efficient light calculation.

  3. URP actually does make a bit of difference. Default pipeline gives you all sorts of tools to use. You can grab pass any time any where but in URP there is no grab pass. URP only supports single pass per shader. URP this and that all comes down to cutting some corners and simplifying certain aspects of the render pipeline. Performance gain is traded off for utility, which you can implement by either modifying URP or using SRP features.

Given your situation, default pipeline or not I can presume that performance on mobile devices would be low.

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

173 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 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

Cant turn on more than one realtime light on LightWeight Render PipeLine. 1 Answer

URP lighting tab missing 1 Answer

Sorting layer ignores 2d lights from the 2d renderer 0 Answers

How to make a 2D sprite 'reflect more light' in URP 2D? 0 Answers

Terrain Becomes Purple when assigning a Render Pipeline Asset. 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