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 /
  • Help Room /
avatar image
2
Question by BallistiX09 · Apr 05, 2016 at 10:56 PM · editorperformancelagopenglstutter

Unity Game Preview Lagging With DirectX 11

I've recently built a new PC and after trying to use Unity for the first time, I opened a project which worked perfectly on my old PC, but now on this new one the game preview stutters. I've got basically an empty scene with a capsule that moves when holding down a key. It used to move perfectly smooth but now it's lagging the entire time.

I've noticed that when I start unity with the -force-opengl command line argument it works fine, but I can't help feeling this is just sidestepping a larger problem and I'd rather sort out the actual problem itself instead of working around it. Could any of you help out with this? Thanks in advance!

**Edit

Turns out it's DirectX 11 causing the problem, I went into the Project Settings > Player Settings and switched from DX11 to DX9 and it works perfectly... I still have no idea why it's not happy with DX11 though, so any help with that would be appreciated!

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 Raditz_X_RAG3 · Jun 17, 2016 at 01:22 AM 0
Share

I have the exact same issue, and it's really annoying. DirectX 11 causes a gfx.waitforpresent spike in the profiler, and turning off vsync didn't help. I even messed around with target framerate, settings in my Nvidia Control Panel, and making sure there weren't refresh rate discrepancies between the Nvidia drivers and Windows, all to no avail. I think it's most likely a bug Unity needs to fix.

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by x4000 · Jan 26, 2017 at 05:38 PM

Figured I would throw in my two cents that this has also been a problem for me, on four different computers, on Windows 7 and Windows 10, from Unity 4.x to now Unity 5.5.

Not only do I get strange visual glitches, but also enormous amounts of lag. Only in the editor: running anything else under the sun, including standalone unity games, works great.

For a couple of years I figured it was something on my computer, then I upgraded computers... and then upgraded again... and installed on a second computer to check it again... no dice. All nVidia cards, three were laptops and one was not. Current problem is on windows 10 with a 1080 on latest drivers, so it's no slouch.

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 BallistiX09 · Feb 06, 2017 at 10:31 PM 0
Share

It's strange that this still hasn't been fixed, I've noticed a few other people with the same problem and there still doesn't seem to be any consistent cause or any way to fix it. Here's hoping it's somehow fixed in a future patch! I'm beginning to think it might not only be a Unity problem though, I'm getting almost exactly the same type of lag in 3DS $$anonymous$$ax, even though I only have a basic scene open. This only seems to happen when I have all four viewports visible at once, and stops happening when I maximise a viewport. Not sure if you're getting the same problem in that, would be interesting to find out though!

avatar image x4000 BallistiX09 · Feb 07, 2017 at 12:45 AM 0
Share

For me it's just all the time, immediately, as soon as I log into Unity. I don't use $$anonymous$$aya (my artist does), but in my brief usage of it I never had any problems. Sketchup, Vue, Photoshop, and similar all perform great for me. Unity is literally the only program I've had unexpected lag on, and it's been on 3+ computers now. :/ Only DX11.

Hopefully it will be moot with Vulkan, but I have not tested that yet.

avatar image
0

Answer by Raditz_X_RAG3 · Jun 22, 2016 at 05:07 PM

After weeks of struggling with this I found something that fixed my problem. After installing a completely different program called SyncToy by Microsoft, the DirectX 11 related lag went away. The reason I think this happened, is because I also installed the .NET 2.0 framework with it. Just install the framework here and it should fix it.

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 BallistiX09 · Jun 22, 2016 at 06:01 PM 0
Share

I just tried installing both the framework, and the SyncToy program you mentioned, but sadly I'm still getting the lag :\ Is there anything else you done around the same time which might have fixed it? Either way, glad to hear it's fixed for you though!

avatar image Raditz_X_RAG3 · Jun 22, 2016 at 06:08 PM 0
Share

Well I reinstalled Unity several times, so you could try a reinstall.

avatar image BallistiX09 Raditz_X_RAG3 · Jun 22, 2016 at 06:27 PM 0
Share

That's a good point actually, I've not tried that yet! I'll give it a go, thanks!

avatar image
0

Answer by trintasegundos · Oct 31, 2016 at 02:40 PM

i have the same problem, any news abour reinstall unity? i have directx 11 in win10

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 BallistiX09 · Oct 31, 2016 at 07:16 PM 0
Share

Heyyy! Sorry, I've tried completely uninstalling, then reinstalling with the latest version, but I still haven't been able to fix it

avatar image
0

Answer by astracat111 · Mar 11, 2018 at 04:04 PM

I'm gonna get hated for saying this, but I've been experiencing the same lag so I'm switching to using OpenGL GLES 3.0 on all platforms, from android to mac to windows.

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

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

83 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 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

Really High CPU usage On empty scenes/new projects (ApplicationTickTimer problem) profiler pics 0 Answers

Lags while camera movement (gfx.waitforpresent) 0 Answers

Why does my Scene View use 100% processor 0 Answers

Troubleshooting sudden editor lag 0 Answers

Regular stutters in performance after a minute or two 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