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 matthewsladebooman · Aug 06, 2019 at 12:20 AM · voxelprocedural generationminecraft

How to get minecraft-like game to generate blocks and still run OK and not slow afterward?

I'm currently working on a Minecraft-like game called MineScape, but I have a problem of whenever blocks generate and they are done generating, the game lags like crazy. This is especially true for when I use quads to build the cube, as the game becomes almost unresponsive and otherwise extremely slow. Otherwise, cubes just slow it down to an unpalatable speed.

I know I could potentially solve the problem with quads, and that I do in fact know that I can use code to build quads, but I don't know how to use the quads in a way that would prevent lagging the game out, and I can't exactly find the YouTube video I want for the problem itself. I don't want to take any more of the time required to figure it out on my own, and besides, I've decided that's what I'd rather do instead of other sources, and so therefore this is why I'm asking this right now. I know it's a bit of a dumb question, but still I could honestly use some help here.

In fact, here are some images show a little bit of that in action. Obviously, it doesn't show that the game is lagging, but it does at least show that the game lags either with these cubes or six-fold with six quads to make up cubes. The Scene View is what's particularly important there, so pay attention to that. But the Game View is also important in the second one, since both windows show both top and side sides of the cubes themselves, to prove that they are constructed out of quads. alt text

alt text

Thanks for the help. Have a nice day.

terrainamplification.png (135.0 kB)
terraingeneration0.png (236.6 kB)
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 unity_Q-dd0z1dejJSCg · Aug 06, 2019 at 01:23 AM

For starters disable the auto-generate lighting which is probably killing you on that amount of blocks. Also you can post your code here.

Comment
Add comment · Show 2 · 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 matthewsladebooman · Aug 06, 2019 at 04:10 PM 0
Share

I'll try disabling auto-generate lighting - didn't think of that before. Heh-heh.

And it's not the code and generation that's the problem. In fact, the code literally ends right after the block terrain generation in the code, so literally nothing else happens. In fact, although I am aware of being able to post code here, that's the reason why I didn't post the code here, because the problem lies within the rendering itself after generation, not when the terrain is currently generating, and again in fact there's literally no more code after that process. But if you do insist on me sending the code, I'll certainly do that.

But again, I'll try disabling auto-generate lighting and see if that works. Thanks in advance. : )

avatar image matthewsladebooman · Aug 10, 2019 at 07:14 PM 0
Share

Disabling auto-generate lighting did little at best and had no effect at worst. I've noticed that quads could potentially be used in a way that could un-render themselves if they were touching another one for example, allowing the game to run much faster and to reduce much of the lag greatly. I've heard of it from Hollistic3D's videos, but I don't know where the rest of the instructions are. To put it simply, solution did not work, further help is needed. Thanks.

However, I do know about how quads could potentially be used to "cut out" parts of the terrain that are unnecessary to show, speeding up the game wonders. However, I don't know how to work with these quads in order to make them work the way I want to in order to speed up the game, so I could honestly use some help in that area too, but any other help besides that is still very much welcome.

Other than that, I'm out of options, so thank you for any other advice y'all give me.

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

115 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

Related Questions

How can I smoothen my cubic mesh using marching cubes? 0 Answers

Rounding edges of cubes (Voxels and Marching Cubes) 1 Answer

Why isn't my mesh updating properly? 2 Answers

Introduction to Voxels and More 2 Answers

Minecraft clone, how to randomly generate a voxel landmass? 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