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 Loui_Studios · Oct 23, 2016 at 12:42 PM · renderingoptimizationlightmappingprocedural generationocclusion culling

Optimization of Procedurally Generated Game

Hi. I've been making a rougelike arcade-style fps that generates each level at runtime.

What I've noticed is that lots of the optimizations that I can normally do on my levels, such as occlusion culling, don't work on these levels as they are randomly generated at runtime.

alt text

Smaller levels run fine, but if I crank up the settings and generate larger ones -there is a significant performance hit.


So I was wondering... What are some ways that you can optimize levels and objects that are instantiated at runtime? LOD systems seem to work just fine, but my meshes don't have much detail anyway.

I'm looking for alternatives to the built-in lightmapping and occlusion culling systems. If possible. I have seen many solutions on the asset store, but I'm on a $0 budget here.

Also... does static batching still work the same way on objects instantiated at runtime? and is there a preferred type of rendering I should use for this type of game? I'm currently using Deferred rendering due to the number of lights generated in each level, but would one of the other types be more suitable?


Some things that might help:

  • My game consists of rooms, corridors, and junctions separating segments of the level. Some segments are divided by doors, concealing the next segment.

  • My game is from a first person perspective, with an overhead orthographic camera rending the radar.

  • Each room contains randomly generated lighting, enemies, and objects instantiated from pre-set points within it.


Thanks! All help is greatly appreciated!

-Louis

capture.jpg (40.5 kB)
Comment
Add comment · Show 2
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 tanoshimi · Oct 23, 2016 at 12:53 PM 0
Share

I think this is a common problem (we've certainly faced it too), not helped by the fact that Unity's batching requirements are somewhat arcane!

Static batching will work however the objects were created so long as they don't move. You can also explicitly call $$anonymous$$esh.Combine$$anonymous$$eshes to merge your modular objects together. Not sure if you're using object pooling to re-use objects if the level is created dynamically as the player moves around the level, but this caused us many headaches. Obviously dynamic batching works fine too.

The inabilty to bake lightmaps was our biggest problem - you might need to do clever things with light probes.

What assets did you find? I didn't even come across any paid assets that would help...

avatar image Loui_Studios tanoshimi · Oct 23, 2016 at 12:59 PM 0
Share

I found a free occlusion culling system called $$anonymous$$2H Culling, which seems to do dynamic occlusion culling. Unfortunately, the asset wouldn't update to the latest Unity version properly.

Thanks for the detailed answer, though.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity Procedural Game Optimization 3 Answers

Problem with Occulusion Culling (Game hide gameobjects when the camera is inside a wall even if gameobjects are still visible) 0 Answers

Why aren't my particle systems batched? 1 Answer

Baking from cubemap to LightProbes 0 Answers

Can my team use our dedicated render farm PCs to build lightmaps in Unity 5 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