• 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 Galactic3D · Jan 14 at 01:33 AM · performanceprofiler

Random FPS drop during gameplay

I have a relatively simple 2d game which I have been testing on my IOS device. While playing the game, I noticed that the FPS would randomly drop from 60 (the target framerate) to between 20-40. The FPS would go back up shortly after the drop.

I investigated some more by running the profiler and was able to see a series of spikes in the rendering graph. Within the hierarchy I see that the "Semaphore.WaitForSignal" process under "Gfx.WaitForPresentOnGfxThread" spiked to around 50%.

The timeline view shows a jump in several processes' time. One thing I noticed was that the "Camera.Render" task increased in time during the spike and wouldn't go back down even after the spike.

I have attached some screenshots of the profiler. Any help would be greatly appreciated!

Hierarchy View: alt text

Timeline View: alt text

screenshot-49.png (178.3 kB)
screenshot-50.png (167.0 kB)
Comment
Add comment · Show 2
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 Namey5 · Jan 14 at 02:54 AM 0
Share

That semaphore means that the frame is waiting on the GPU - I would suggest enabling GPU profiling and see what's going on there.

avatar image Galactic3D Namey5 · Jan 14 at 03:46 AM 0
Share

I tried enabling the GPU profiler for my phone but since it uses Metal it won't work. I also tried to get the problem to show up within the editor but couldn't.

The only alternative I saw was using the xcode GPU profiler but I don't have a mac to do it on. Any more ideas?

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Galactic3D · 4 days ago

It turns out the issues was just something wrong with the IOS 14.4 Beta. The IOS 14.4 RC seems to have fixed the issue.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

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

is this game so bad in performance?? 0 Answers

Reading Profiler Results 1 Answer

Is there a way to check the performance in edit-mode? 1 Answer

Spriteskin.LateUpdate 2 Answers

How do I get my game to run faster? 4 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges