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 Tetrad · Apr 06, 2010 at 10:47 PM · iphoneperformanceframerateipadfog

Poor fog performance on the iPad?

I have a simple scene set up with the following items in it

  1. Skybox (using the RenderFX/Skybox material)
  2. Ambient light
  3. Fog (density of .2)
  4. Tessellated plane with a vertex lit material, 0 shininess, no emissive.

I modified AppController.mm to set kFps to 60.

I also added a little script to toggle RenderSettings.fog.

When the fog is active, the game gets around 30fps.

With the fog disabled, I'm getting 60.

(I'm using something similar to this script to draw the FPS on the device: http://www.unifycommunity.com/wiki/index.php?title=FramesPerSecond )

My question is twofold. One, is this expected behaviour, and two, if it isn't, is there something I'm missing to make fog not kill performance as much?

Comment
Add comment · Show 1
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 Murcho · Apr 06, 2010 at 10:51 PM 1
Share

Is this in the iPad simulator or on the actual device that the performance is degrading?

2 Replies

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

Answer by jashan · Jun 16, 2010 at 01:39 PM

There currently seems to be a bug in iPhoneOS / iOS that makes rendering fog very inefficient. So while not exactly "as designed", this can be considered "expected behavior". So you should avoid using fog on the iPad.

I'm not perfectly sure how relevant this is for Unity iPhone - but you might want to check out Creating a fogless version of a built-in shader. If that works well for iPhone, you should be able to switch all shaders to "without fog" and then, whenever fog doesn't kill performance anymore could return to the original shaders.

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
1

Answer by Ricardo · Apr 07, 2010 at 07:24 AM

Very likely the iPad's framerate is tied to the LCD's refresh rate and works only in discrete increments. That means that your framerate would drop from 60 to 30, not something like 51 or 46. You can read more at the forums - it's brought up every so often.

Having said that, I understand fog isn't exactly cheap, but someone else can probably provide better numbers.

Comment
Add comment · Show 1 · 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 Tetrad · Apr 07, 2010 at 03:47 PM 0
Share

The thing is, I added another object to the scene (a large additive particle), and the framerate goes from 15fps with fog to 45 fps with fog.

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

No one has followed this question yet.

Related Questions

Low frame rate with only one texture on iPad 4 Answers

Confusing Ipad performance problems - help! 1 Answer

Best way to create/design modular Player 2 Answers

smooth transitions for Rigibodies objects on iPhone and iPad 1 Answer

Stuttering / performance issue with certain JS scripts 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