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 Henry90 · Mar 07, 2013 at 10:57 AM · camerafpsslowlow fpsframe rate

Low Fps in a simple game

Hi everybody, I'm a newbee in Unity 3d and I'm making a simple game. I'm gonna link you a video where I show you my game. It is made only by simple PRIMITIVES.. Cubes, Spheres etc.. And when I start it, it has got only 6 Fps ... The only "heavy" things in that game are those Leds you can see of differents colours (Green, White and Orange). They are a simple cilinders with a self-illuminated material (with Alpha to 50) and I attached the Glow effect to my main camera so every object with an Alpha different from 0 will glow. That's all. Nothing more. Do you think that the problem of my low fps is the size of my game? It's big.. if you see the range of my MainCamera you will notice that my map is a lot longer than the Camera's range. Indeed when I start the game I cannot see the end of the map. And there isn't any script with "while or for" cycle.. so this doesn't depend on scripts. What do you think about this? Sorry for my English and thank you all! Here it is the video:

http://www.youtube.com/watch?v=d2VjTxjh5-A

some more info: Main Thread. 206 ms Renderer: 4 ms Draw call:61 Saved by batching:586 Tris:87k Verts:160k Used Textures: 13 - 2.7MB Render Textures: 3 - 10.2 MB switches:5 Screen: 1382x910 - 14.4 MB VRAM usage: 24.6 MB to 26.6 MB (of 0.99 MB) VBO total: 676 - 2.0 MB Shadow Casters: 0 Visible skinned meshes: 0 Animation: 0

About my pc I have 4GB of Ram, an ATI HD 6870 and a Phenom II.. So it doesn't depend on my pc :S

At the end, this is what happen using the Profiler:

http://img607.imageshack.us/img607/6386/screenkdl.png

It seems that the "Others" is the problem but, how to fix it?

Comment
Add comment · Show 4
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 Chronos-L · Mar 18, 2013 at 08:57 AM 0
Share

In your profiler, the ObjectCount in $$anonymous$$emory keeps on going up. Have you took a closer look at that?

avatar image Henry90 · Mar 18, 2013 at 09:08 AM 0
Share

Well, what should I do? I don't use particoular kind of objects. I just use primitives: Squares, Cube and so on.. It's really impossible that a game engine like Unity 3d can't handle that number of objects. I downloaded game with an incredible number of objects and the game runs smoothly..

avatar image Razity · Apr 16, 2015 at 06:29 AM 0
Share

@Henry90 how did you solved this issue? i am stuck in a similar issue.

avatar image Henry90 · Apr 17, 2015 at 08:25 AM 0
Share

@Razity I solved it after I understood that the problem was related to the particle effects I had in my game. In practice I had many particle effects which were "active" for the whole duration of the game. Even if you don't see them because they far from you, they are active! This leads to a huge use of resources. That's why my game was really slowly. Therefore I had to create scripts in order to "deactivate" these particles whenever they were not needed: for example when I was far enough and I couldn't see them. Hope this helps! ps: how did I notice that the problem was with the particle effects? I used a tool called "profiler" provided by Unity Pro (I don't know if the free unity gives it as well nowadays) which made me notice where there was an overload of resources in my game.

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by MountDoomTeam · Mar 07, 2013 at 11:35 AM

okay so it's definitely due to the lighting. something is happening with the processing of the lighting and the glow effect.

Unity says: The Bloom image effect gives greater control over the glow but has a bit higher processing overhead.

I think that glow effect is made for sparse usage example to make sunrays, to cover entire windows etc, you can read about in wiki. using that many of them is a bit cheeky!

What you should do is look for different unity shaders that has been written to glow, I have seen "planet shaders" which have that kind of effect, just look online for unity glowing shader. great level by the way.

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 MountDoomTeam · Mar 18, 2013 at 02:22 AM 0
Share

feel free to vote if I answered it correctly and mark as answered

avatar image Henry90 · Mar 18, 2013 at 08:44 AM 0
Share

The problem is that I removed everything about the glow effect and lighting. And I didn't solve the problem. For this reason I didn't mark as answered :( Sorry!

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

13 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

Related Questions

Help! My game stutters and I don't know why 0 Answers

Converting to 3rd Person from 1st Person - Island Demo 1 Answer

Real elapsed time since frame begin 1 Answer

Lerping Field Of View is buggy 1 Answer

Set Max Rotation On Weapon Sway 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