- Home /
Blank scene, 2 sprites, 32 FPS
Hi,
I have big problem. I'm using Unity 2019.3.5f1 with URP. I have blank scene with only 2 sprites (And canvas with FPS ounter) and I have only 22-36 FPS. I tested this scene on Samsung Galaxy S6, J5 and on Note 7. Result is the same.
Without sprites i have 60 FPS. When I add only 1 (no matter what sprite) sprite I have again 22-36 FPS.
Now I don't know what to do.
Answer by BBIT-SOLUTIONS · Mar 22, 2020 at 02:50 PM
Are you sure the problem is really caused by the sprites? Or is maybe something wrong with the FPS counter on your Canvas, what just appears, as soon as you have added sprites into the scene?
Answer by Kacper1263 · Mar 22, 2020 at 02:58 PM
I think the FPS counter is Ok. I created this empty scene because I had problem with FPS in other scene with my game. I mainly tested my game in the editor and I wasn't worried about the low FPS on Android because I said that one day I would do optimization. Unfortunately, it turned out that there are problems with it. After many hours, I decided to check if the problem with the frames also occurs on an empty scene.
EDIT: The game is made in 2D style. I'm using only sprites, particles and UI elements. Zero 3D objects
ok, but in the new empty scene, you don't use any particles, right? I guess, then we can ignore them to find the actual error probably.
So, what image format do you use for your Sprites? And what size is it? Did you maybe try to play a bit around with the quality parameters in the Import Settings of your Asset?
Yes, I'm not using any particles. This scene have only one canvas with FPS counter and one object with sprite renderer. Here are the settings for the sprite and the object that displays it (for some reason I'm trying to upload img to this comment and I cant so there is a link to Google Photos): Sprite and object settings
I tried to change the compression quality but nothing changes
Thank you. There seems to be no problem with the Asset itself in my oppinion...
So i checked your profiler screenshot again, and i guess the main problem is the Semaphore.WaitForSignal
. According to this issuetracker it sometimes happens with Canvas, what exactly seems to be the problem, you've described.
So, would it be an option for you to maybe try another Unity version?
So, I don't tested other versions of Unity yet (now I'm building on 2020) but when I delete URP from project I had 60 FPS and not only on this blank scene but in game too. Of course now some materials are not working and my shaders too but I have stable 60 FPS in game. I think this is problem with URP :( I will try run this on 2020. if problem will still exists I will continue project without URP :(
EDIT: On 2020 problem is the same
Your answer
Follow this Question
Related Questions
How to Display Hundreds of Thousands of Sprites? 2 Answers
Get the atlas of a sprite in editor 0 Answers
Vector art Player 0 Answers
Sorting order jumbles with more than 30 objects in a single sprite mask 0 Answers
Sprite Based Score Rendering 1 Answer