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
0
Question by LeviS · Nov 08, 2010 at 08:24 AM · fpsgraphicsperformancespeedexe

Wild fluctuations in performance when built into an exe...

Several of my classmates and I made a platform game in 2 weeks for a small project with Unity.

I used var vert : float = Input.GetAxis("Vertical") * movement_speed; for moving the character around, movement_speed was set to 0.15, and seems to work fine with our animation.

So we get finished and I build it as an exe, my level seems about the same, except I noticed at the very beginning I was moving irregularly fast. However in the next two levels which were a lot smaller then mine the player character could almost fly through at crazy speeds.

I'm sure it's related to the amount of stuff going on in each level, for instance on one of those really fast levels it slows down to normal at the end where there is bunch of spike traps/lights, an overall fairly dense prefab.

So I am wondering how to predict this, or combat this kind of outcome? Or some way to test pre-build if these kinds of problems will arise. We didn't use any objects with crazy vert or polygon counts, and within unity we didn't notice the speed difference at all. I tested the FPS with Fraps (in the exe version) and noticed that it had a large range usually between 50-110, and more like 150 on the smaller levels.

We have a lot of lights & shadows in our levels based on the game's story, I'm wondering if that could be the case but I don't have the experience to know.

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 LeviS · Nov 08, 2010 at 08:56 AM 0
Share

I changed all the lights that were Soft Shadows down to No shadows, and while that helped the performance, there is still a large gap in how fast the player moves between the different levels. Is there something I am missing from my movement script to cap the speed?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by LeviS · Nov 08, 2010 at 09:10 AM

Figured it out. Feel like a fool, I forgot vert *= Time.deltaTime; to make it per second not per frame. And having so many lights casting shadows was a problem too, but now the speed is standardized across levels.

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 Joshua · Apr 10, 2011 at 01:29 AM 0
Share

Heh, common mistake. Gl.

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

Best performance, best graphics. Looking for tips. 0 Answers

Why does the frame rate drop so much when rendering my game? 0 Answers

Overlay Effect Shader - Very slow in mobile device 1 Answer

Best hardware to run high-quality simulation? 1 Answer

FPS character, full body or just arms? 2 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