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 Hungryum · Jun 26, 2015 at 04:22 PM · laglow fps

Game lags at native resolution but when run at 640x480 is fine?

I've been currently developing my game on a top of the range PC which runs the game at 60 fps but when I tested it on my low end laptop I experienced major lag running at 15 fps. I figured out that when I ran the game in the lowest resolution it was able to run at 45fps. I assume this means it isn't a problem with the draw calls, physics or scripts. So what could be causing the lag?

I've taken a screenshot of my game running with the profiler visible: https://picasaweb.google.com/lh/photo/6Gj_RTZRHs7odweb2w4HgNumTc6NW7XejYB1ytE8p7o?feat=directlink

Comment
Add comment · Show 3
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 _dns_ · Jun 26, 2015 at 05:40 PM 0
Share

Hi, this looks like more of a GPU problem than a CPU problem. I would check the bandwidth usage on the GPU: complex shaders, overdraw, post effects with lots of passes, big uncompressed textures... Lastly, Intel integrated GPU that are present on a lot of laptops are not as good as a dedicated GPU, especially for bandwidth.

avatar image meat5000 ♦ · Jun 26, 2015 at 05:48 PM 0
Share

A lot of netbooks and low-end laptops simply dont have the bandwidth for large amounts of data. You will find they even struggle with simple browsing, sometimes.

Run a program like 3D$$anonymous$$ark (Some older version) to get an idea of what the machine is really capable of. Play a few games on it. If you can play Half-life 2 in full GFX no problem your game is broken.

avatar image Bunny83 · Jun 27, 2015 at 09:19 AM 0
Share

@meat5000:
:D HL2 is a bad stress-test game since it was designed to run on almost any kind of hardware. It adjusts itself to the hardware it runs on.

@Hungryum:
What is the "native" resolution of your laptop?

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by tanoshimi · Jun 26, 2015 at 05:18 PM

Use the profiler, Luke...

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 Bunny83 · Jun 27, 2015 at 09:15 AM

Your problem is probably that your low end GPU just isn't fast enough for the required fill rate. A larger resolution requires a greater fillrate. Keep in mind that fragment shaders are executed for each pixel. So the larger your resolution the more pixels it has to render. If you have a lot of overdraw it even gets worse. Keep in mind that if you double the resolution you actually have 4 times the pixel count. It's a quadratic increase.

Comment
Add comment · Show 3 · 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 Hungryum · Jun 27, 2015 at 03:52 PM 0
Share

Thanks I didn't know about fill rates, that explains why it was able to run much faster at a lower resolution. In that case does it mean I have to lower my texture resolutions even further or will that make no difference?

avatar image Bunny83 · Jun 27, 2015 at 09:59 PM 0
Share

The texture resolution will not affect the fill rate at all. Larger textures just require more memory. If you have an integrated GPU you probably don't have that much memory available.

Well, if the laptop doesn't have a "real" 3d accelerator there's not much you can do beside:

  • Run your application on a lower resolution.

  • reduce the stuff that is actually drawn. I don't talk about vertex or triangle count but overall count. The fillrate is affexted by everything that is "in view", not just by things that are visible. Even things that are occluded by other things. Depth testing is done after the fragment shader has been executed for that fragment. If the depth text fails it's not as much overhead as if an actual color is written to the frame buffer, but it's still quite a bit depending on the used shader.

  • Use "lighter" shaders, especially the fragment shaders. Unity's new standard shader is quite heavy. If you don't need specular highlight, try use one of the old shaders or even the mobile versions.

If nothing of the above mentioned things helps you should realise that you can't reach the moon with a Cessna ^^.

avatar image Hungryum · Jun 28, 2015 at 04:30 AM 0
Share

haha, well thanks for all the insight! I'll give those a try but your probably right. I still do want to reduce as much of the lag as possible for lower end machines but for my game I guess a graphics card would be recommended.

avatar image
0

Answer by DajBuzi · Jun 26, 2015 at 04:35 PM

Hello, Please ensure that you'r laptop is in the high performance mode. If this wont help then you can check if there is problem with choosen GPU. Many games uses integrated graphics when run on a laptops even though you have a "super-ultra graphics chip from nvidia".

If that wouldn't help, just leave the comment and i will make some research ;)

Regards, M. Rogalski

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 Hungryum · Jun 27, 2015 at 07:30 AM 0
Share

Hi, thanks for the response. The laptop dose not have a graphics card so yes it does use integrated graphics but this should be enough to run my game as it works fine when played at a low resolution. I was wondering if there might be a way to reduce the gpu load, possibly a way to reduce the VRA$$anonymous$$ usage/VBO total. I also have an image link to the game running with the profiler. https://picasaweb.google.com/lh/photo/6Gj_RTZRHs7odweb2w4HgNumTc6NW7XejYB1ytE8p7o?feat=directlink

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Serious performance issues 0 Answers

Low FPS in very simple Android game 1 Answer

Our Game Has Extremely Low FPS (High Poly Count?) 2 Answers

Editor incredibly slow, weird profiler output. 1 Answer

Low FPS with charachter animation 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