Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Released Mac app verry laggy #366

Open
mushu8 opened this issue Feb 13, 2021 · 9 comments
Open

Released Mac app verry laggy #366

mushu8 opened this issue Feb 13, 2021 · 9 comments
Labels
? Action required: missing information, question to answer, or CLA not signed bug (critical) This needs to be fixed as soon as possible

Comments

@mushu8
Copy link

mushu8 commented Feb 13, 2021

Short description
Hard to play the game because of performance issues :
camera lags, it takes 3 seconds to jump, 2,50 GB RAM used for the application.

Expected behaviour
Smooth movements

To Reproduce

  1. Download the 0.6 alpha for Mac
  2. Launch it
  3. Game launch fast but it is very laggy

Notes
Using Mac OS Catalina 10.15.6 on 3GHz 6 cores i6 and 32GB DDR4

@mushu8
Copy link
Author

mushu8 commented Feb 13, 2021

I am a beginner with Unity game development but not in development.
I would like to use this project as a starter to learn and try.
Could someone tell me if it is possible to reduce the memory usage of this project so it can be adaptated to a lighter game ?

@ciro-unity
Copy link
Contributor

Thanks for the issue report, @mushu8!
Did you try and check why the game lags? It would be great to know. You could try and use the profiler? Since you mention you are a beginner with Unity, this talk might come in handy.

You might also have to rebuild the app for Mac using "Development Build", so that you can attach to it and profile:
image

If the task is outside of your knowledge don't worry, we will do it (as we get some time) or hopefully another member of the community.

@ciro-unity ciro-unity added the bug (critical) This needs to be fixed as soon as possible label Feb 13, 2021
@treivize
Copy link
Contributor

I tried to google this MacOS specific performance issue and came across this log from Unity Answers: https://answers.unity.com/questions/1695529/is-it-expected-to-see-worse-performance-on-mac-osx.html

It might be some thing to retrofit in 2019.x LTS or we wait for 2020.x LTS version to get this solved...

@ciro-unity
Copy link
Contributor

this MacOS specific performance issue

Hmm, I'm not specific if you're talking about the issue @mushu8 is describing? Sounds to me like a framerate issue, more than specifically on the input.
But I'm not too sure.

@ciro-unity ciro-unity added the ? Action required: missing information, question to answer, or CLA not signed label Apr 19, 2021
@shuttle127
Copy link
Contributor

While I understood how to create the development build and attach to it for profiling from the video, not familiar enough with the codebase to figure out why the PlayerLoop in each frame hovers from 14.5-19ms per frame. Is there an easy way to share my profile data for someone else to review so that they don't have to build? I'm on MacOS Big Sur 11.12.3 with 2.9GHz 6-core i9 with 32GB DDR4.

@ciro-unity
Copy link
Contributor

Is there an easy way to share my profile data for someone else to review so that they don't have to build?

Hey, yes, the Profiler has a Saving functionality, you can export a file and share it here so we can take a look. Could be useful and fun for learning too!

image

Thanks!

@shuttle127
Copy link
Contributor

That's what I did the other day, but when I tried to upload it here, GitHub said the file type (.data) wasn't supported. My brain was so fried that I didn't realize I could convert it to .gz using gzip and upload it, so I'm trying that now and the file (~41MB) is too big (needs to be <10MB)! Guess it'll be for personal edification after all, heh.

@ciro-unity
Copy link
Contributor

I guess you can link it using Google Drive, or Dropbox, or similar? (if you want to)

@shuttle127
Copy link
Contributor

Been so swamped lately that have only now gotten a chance to update to the latest code and re-profile, so here's a Dropbox link to a ZIP file of me starting the game on the beach, taking a few steps, attacking the air a few times, and jumping.

https://www.dropbox.com/sh/2rcv8ws0j9fdbrd/AABJzHf2UsDKt5Mk0V7KdzwEa?dl=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? Action required: missing information, question to answer, or CLA not signed bug (critical) This needs to be fixed as soon as possible
Projects
None yet
Development

No branches or pull requests

4 participants