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 Ci123Dowds · Oct 26, 2014 at 09:16 PM · meshiphoneoptimizationvoxel

Frame Rate drops when creating mesh in mobile Voxel World?

I have created a game for iPhone which creates a large voxel world similar to minecraft. The world uses chunks of blocks and creates a single mesh for each chunk. As the player moves through the world new chunk game objects are instantiated in front of a player and a mesh is generated for each. Chunks that are too far from the player are destroyed but can be recreated.

However, as each new chunk is loaded, the frame rate drops for an instant creating a distracting pause in gameplay. I have optimised by avoiding drawing faces which are bordered by other voxel blocks. I also calculate the values for the verts, tris and uvs in a separate thread. This has improved performance significantly but the annoying drop in framerate still occurs (even on the more powerful iphone 5S ). I am unsure of what could solve the problem. Possibly the mesh could be added slowly across several frames as there is no great hurry to generate a chunk. Also, adding small meshes to the scene doesn't affect framerate so maybe the mesh could be added in smaller pieces. Any solutions are appreciated. Thanks in advance.

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 robertbu · Oct 26, 2014 at 09:17 PM 0
Share

You may get better answers on the Unity Forums. If you post there, include a link in this question so anyone interested can find your question.

avatar image AlwaysSunny · Oct 26, 2014 at 09:32 PM 0
Share

Generating / Creating the mesh can happen over multiple frames, which might reduce hiccups. Adding the mesh collider is an expensive atomic operation, meaning it can't be spread out over multiple frames. That might be the source of your hiccup. You could perhaps change your chunk generation logic to use multiple mesh colliders (so that they are smaller) and generate only one per frame.

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

Profiler shows Object.ElementAddr_3_8() called over a million times. What is it? How do I reduce this? 1 Answer

Voxel learning project performance issues 0 Answers

Sharing vertex buffer between mesh objects 1 Answer

Voxel mesh generation not working. 1 Answer

Voxel Terrains 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