Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Tomer-Barkan · Feb 28, 2016 at 11:11 PM · renderingperformancespritesanti-aliasing

Anti Aliasing and Sprites on Intel HD Graphics

Hi,

My game consists mostly of sprites, and has a few 3D objects. I turn anti-aliasing on for the 3D objects, so they don't look jagged. Works wonderful with proper GPUs.

My problem is with Intel HD graphics, the anti aliasing kills performance. I'm not sure why, because there's only 3-4 3D objects, and as far as I understand, anti aliasing isn't supposed to work on sprites anyway. I can confirm it has no effect on the sprites when it's on or off, however when the sprites are there performance is horrible. If I disable the sprites, anti aliasing performance is back to normal.

Any idea why this is happening? Any other ideas on how I can integrate anti aliasing into the 3D objects only? They have custom shaders, but I didn't find a way to add anti aliasing to a shader.

This seems to happen mostly with these sprites: alt text

Edit: Adding a profiler snapshot: alt text

snadstorm.png (107.7 kB)
e0k4akm.jpg (192.4 kB)
Comment
Add comment · Show 9
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 Graphics_Dev · Mar 01, 2016 at 06:18 PM 0
Share

You can search for anti-aliasing on the asset store.

avatar image Tomer-Barkan Graphics_Dev · Mar 01, 2016 at 07:10 PM 0
Share

I tried post effect anti aliasing and it was pretty bad.

avatar image multinfs · Mar 01, 2016 at 07:14 PM 0
Share

Does this also happen in a finished build? I've had alot of performance issues in the Unity Editor that simply do not occur in a finished build, try it out to see if it works as intended in your target build.

avatar image Tomer-Barkan multinfs · Mar 01, 2016 at 08:33 PM 0
Share

Yes, absolutely.

avatar image multinfs · Mar 01, 2016 at 11:26 PM 0
Share

And you have tested both unity built in $$anonymous$$SAA and the Standard Assets Antialiasing script with multiple AA methods like FXAA?

avatar image Tomer-Barkan multinfs · Mar 02, 2016 at 09:05 AM 0
Share

I tried the post process AAs from the standard assets, the results were pretty bad. We use a toon shader and the post effect AA doesn't work so well on the thin outlines, while the hardware $$anonymous$$SAA does a great job.

avatar image multinfs Tomer-Barkan · Mar 02, 2016 at 11:16 AM 0
Share

Well, if the $$anonymous$$SAA works fine then I'd suggest using that only. The problem you're having with the scripts may lay in their code, try snooping around in it to see if there is some special code for sprites. Also in your profiler it's the Gfx.WaitForPresent that is delaying the rendering, try disabling Vsync if it's enabled.

Show more comments
avatar image _dns_ · Mar 02, 2016 at 03:34 PM 0
Share

The problem with $$anonymous$$SAA is that is uses lots of bandwidth (https://en.wikipedia.org/wiki/$$anonymous$$ultisample_anti-aliasing). Integrated GPU uses the same memory as the CPU and then have less bandwidth than dedicated GPU. Try proposing different AA options to the player, or to use smaller resolution on some GPUs.

To be sure the bandwidth is the problem: try launching the game in a smaller resolution, like 640x480. If the game runs faster, even with AA, that's a bandwidth problem.

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

57 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 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 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 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

How to Display Hundreds of Thousands of Sprites? 2 Answers

4.6 -> 5.0 Dramatic Performance Loss - No batching? 1 Answer

Creating a visual representation based on an ArrayList 0 Answers

SteamVR Vive Development: MSAA, Deferred Rendering, and Lighting 1 Answer

Performance Question 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