Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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 /
  • Help Room /
avatar image
2
Question by Strauchninja · Dec 06, 2016 at 09:19 AM · performancecamera-movementlagstutterlaggy

Lags while camera movement (gfx.waitforpresent)

Hello we are really frustrated, because we can not figure out what kind of issue is causing our Problems with the Unity camera movement.

First our project setup which we use:
Unity version: 5.5.0f3
CPU: i7 4930k
GPU: NVIDIA GeForce GTX TITAN
RAM: 32 GB
Monitor 1: Samsung 24 Zoll at 1080 x 1920 60Hz
The following monitors are used in Portrait mode:
Monitor 2: Samsung 55 Zoll at 2160 x 3840 60Hz
Monitor 3: Loewe 55 Zoll at 2160 x 3840 60Hz

The project itself is an easy application. We only have simple graphic entities in our scene (see screenshot) and we have a camera which is animated from the left to the right side. The application will run on one of the 4K screens mentioned above.

Now the frustrating Problem:
When we enter the play mode in the UnityEditor the whole scene is lagging/stuttering as hell, even though we have (with vsync disabled) real high frame rates (above 200fps). We just checked if it is maybe the monitor, so we just switched from Loewe back to the Samung 4K tv but that also did not change anything. We even tried the scene on the normal 1080p Monitor and the lag is still there. Although on a more powerful Workstation ( 2x Titan X pascal) the camera movement is laggy. We also tried to use the profiler to check what is causing this lag. There we discovered two different kind of spikes in the profiler. The first one is called Gfx.WaitForPresent and the second one is called WaitForTargetFPS. Until now we couldn't figure out how we can solve this problem.

Other things we tried:

-update graphics driver
- use other Monitor
- Setup occlusion culling for whole scene
- animate camera directly via script not with UnityAnimationSystem
- used stronger machine
- checked windows resource manager while in play mode (CPU an Ram are bored)
- We also checked the refresh rates of the monitor (all set to 60 Hz)
- also tried other animations (different directions, rotations, etc.)

Maybe we missed something and someone of you got an idea what we could try, to get rid of this lag.

Some screenshots to get an idea what our scene looks like: First screen is our scene setup Second screen is the Gfx.WaitForPresent and WaitForTargetFPS Scene Setup profiler

gfxwaitforpresent-waitfortargetfps.jpg (264.0 kB)
scene-view.jpg (69.6 kB)
Comment
Add comment
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

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

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

Bad Performance URP 0 Answers

FPS drop beacause Dialog with 200 images in it 0 Answers

Unity Game Preview Lagging With DirectX 11 4 Answers

MoveTowards used on a path causes lag in build 0 Answers

Troubleshooting sudden editor lag 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